[petsc-dev] Bad use of defined(MPI_XXX)

Jed Brown jed at jedbrown.org
Fri May 24 14:51:21 CDT 2019


Lisandro Dalcin via petsc-dev <petsc-dev at mcs.anl.gov> writes:

> These two are definitely wrong, we need PETSC_HAVE_MPI_XXX instead.

Thanks, we can delete both of these cpp guards.

> include/petscsf.h:#if defined(MPI_REPLACE)

MPI-2.0

> src/sys/objects/init.c:#if defined(PETSC_USE_64BIT_INDICES) ||
> !defined(MPI_2INT)

MPI-1.0


More information about the petsc-dev mailing list