[petsc-dev] assuming sizeof(PetscInt) <= sizeof(PetscScalar)

Barry Smith bsmith at mcs.anl.gov
Sat Feb 8 17:40:01 CST 2014


   It appears people have been assuming sizeof(PetscInt) <= sizeof(PetscScalar) right and left in the code (to take advantage of VecScatter functionality). This is most definitely not true with —with-64-bit-indices —with-precision=single

MatGetBrowsOfAoCols_MPIAIJ
PCGAMGProlongator_Classical_Standard
maybe others

VecScatters are for moving Vec elements around, they are not a replacement for MPI calls!

Please don’t do this in the future.

   Barry




More information about the petsc-dev mailing list