PetscCIntCast#

casts a MPI_Count, PetscInt, PetscCount, or PetscInt64 to a int, generates an error if the int is not large enough to hold the number.

Synopsis#

static inline PetscErrorCode PetscCIntCast(MPIU_Count a, int *b)

Not Collective; No Fortran Support

Input Parameter#

Output Parameter#

  • b - the resulting int value, or NULL if the result is not needed

See Also#

PETSc and standard datatypes, PetscBLASInt, PetscMPIInt, PetscInt, PetscMPIIntCast(), PetscBLASIntCast(), PetscIntCast()

Level#

advanced

Location#

include/petscsys.h


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