PetscCountCast#
casts a PetscCount to a PetscInt (which may be 32 bits in size), generates an error if the PetscInt is not large enough to hold the number.
Synopsis#
static inline PetscErrorCode PetscCountCast(PetscCount a, PetscInt *b)
Not Collective
Input Parameter#
a - the
PetscCountvalue
Output Parameter#
b - the resulting
PetscIntvalue
Notes#
If integers needed for the applications are too large to fit in 32 bit ints you can ./configure using –with-64-bit-indices to make PetscInt use 64 bit ints
Not available from Fortran
See Also#
PetscBLASInt, PetscMPIInt, PetscInt, PetscMPIIntCast(), PetscBLASIntCast(), PetscIntMultError(), PetscIntSumError(), PetscIntCast()
Level#
advanced
Location#
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages