petsc-3.11.4 2019-09-28
Report Typos and Errors

PetscMPIInt

datatype used to represent 'int' parameters to MPI functions.

Notes

usually this is the same as PetscInt, but if PETSc was built with --with-64-bit-indices but standard C/Fortran integers are 32 bit then this is NOT the same as PetscInt; it remains 32 bit.

PetscMPIIntCast(a,&b) checks if the given PetscInt a will fit in a PetscMPIInt, if not it generates a PETSC_ERR_ARG_OUTOFRANGE error.

See Also

PetscBLASInt, PetscInt, PetscMPIIntCast()

Level

intermediate

Location

include/petscsystypes.h

Examples

src/sys/classes/random/examples/tutorials/ex2.c.html
src/sys/logging/examples/tutorials/ex1f.F90.html
src/ksp/ksp/examples/tutorials/ex6.c.html
src/ksp/ksp/examples/tutorials/ex73.c.html

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages