[petsc-dev] Matt: problems with const

Matthew Knepley knepley at gmail.com
Sat Mar 9 19:36:53 CST 2013


On Sat, Mar 9, 2013 at 7:02 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>   Matt,
>
>     Problem with const not trivial to fix. I'm not sure what you want to
> allow changing or not.  What kind of compiler are you using the doesn't
> care about const?
>
> "/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E
> cmake_progress_report /Users/barrysmith/Src/petsc-dev/arch-cxx/CMakeFiles
> [ 71%] Building CXX object
> CMakeFiles/petsc.dir/src/dm/impls/plex/plexsubmesh.c.o
> /Users/barrysmith/Src/petsc-dev/src/dm/impls/plex/plexgeometry.c: In
> function ‘PetscErrorCode DMPlexComputeTriangleGeometry_Internal(_p_DM*,
> PetscInt, PetscReal*, PetscReal*, PetscReal*, PetscReal*)’:
> /Users/barrysmith/Src/petsc-dev/src/dm/impls/plex/plexgeometry.c:280:
> error: invalid conversion from ‘const PetscScalar*’ to ‘PetscScalar*’
> /Users/barrysmith/Src/petsc-dev/src/dm/impls/plex/plexgeometry.c:280:
> error:   initializing argument 1 of ‘PetscErrorCode
> DMPlexComputeProjection3Dto2D_Internal(PetscScalar*)’
> make[5]: *** [CMakeFiles/petsc.dir/src/dm/impls/plex/plexgeometry.c.o]
> Error 1
>

Mac GNU. Will fix.

  Matt

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130309/b43b3c1b/attachment.html>


More information about the petsc-dev mailing list