[petsc-dev] p4est won't compile cleanly with PETSc single precision
Smith, Barry F.
bsmith at mcs.anl.gov
Tue Jan 2 21:35:29 CST 2018
In file included from /Users/barrysmith/Src/petsc/src/dm/impls/forest/p4est/dmp4est.c:13:
/Users/barrysmith/Src/petsc/src/dm/impls/forest/p4est/pforest.c:3775:53: warning: incompatible pointer types passing 'double [3]' to
parameter of type 'const PetscReal *' (aka 'const float *') [-Wincompatible-pointer-types]
ierr = (map)(base,coarsePoint,p4estCoordDim,coordP4est,coordP4estMapped,mapCtx);CHKERRQ(ierr);
^~~~~~~~~~
/Users/barrysmith/Src/petsc/src/dm/impls/forest/p4est/pforest.c:3775:64: warning: incompatible pointer types passing 'double [3]' to
parameter of type 'PetscReal *' (aka 'float *') [-Wincompatible-pointer-types]
ierr = (map)(base,coarsePoint,p4estCoordDim,coordP4est,coordP4estMapped,mapCtx);CHKERRQ(ierr);
^~~~~~~~~~~~~~~~
In file included from /Users/barrysmith/Src/petsc/src/dm/impls/forest/p4est/dmp8est.c:19:
/Users/barrysmith/Src/petsc/src/dm/impls/forest/p4est/pforest.c:3775:53: warning: incompatible pointer types passing 'double [3]' to
parameter of type 'const PetscReal *' (aka 'const float *') [-Wincompatible-pointer-types]
ierr = (map)(base,coarsePoint,p4estCoordDim,coordP4est,coordP4estMapped,mapCtx);CHKERRQ(ierr);
^~~~~~~~~~
/Users/barrysmith/Src/petsc/src/dm/impls/forest/p4est/pforest.c:3775:64: warning: incompatible pointer types passing 'double [3]' to
parameter of type 'PetscReal *' (aka 'float *') [-Wincompatible-pointer-types]
ierr = (map)(base,coarsePoint,p4estCoordDim,coordP4est,coordP4estMapped,mapCtx);CHKERRQ(ierr);
^~~~~~~~~~~~~~~~
Why have any stray doubles lying around?
More information about the petsc-dev
mailing list