[petsc-dev] Matt: problems with const
Barry Smith
bsmith at mcs.anl.gov
Sat Mar 9 18:02:38 CST 2013
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
More information about the petsc-dev
mailing list