PETSC_STATIC_INLINE PetscInt PetscIntSumTruncate(PetscInt a,PetscInt b)Not Collective Many br
a | - the PetscInt value Many br | |
b | - the second value Many br |
Use PetscIntMult64bit() to compute the product of two PetscInt as a Petsc64bitInt Many brUse PetscRealIntMultTruncate() to compute the product of a PetscReal and a PetscInt and truncate to fit a PetscInt Many brUse PetscIntMultError() to compute the product of two PetscInt if you wish to generate an error if the result will not fit in a PetscInt Many br
This is used where we compute approximate sizes for workspace and need to insure the workspace is index-able. Many br
Many br
Level:advanced
Location:include/petscsys.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages