PETSC_STATIC_INLINE PetscInt PetscRealIntMultTruncate(PetscReal a,PetscInt b)Not Collective
a | - the PetscReal value | |
b | - the second value |
Use PetscInt64Mult() to compute the product of two PetscInt as a PetscInt64 Use PetscIntMultTruncate() to compute the product of two positive PetscInt and truncate to fit a PetscInt Use PetscIntMultError() to compute the product of two PetscInt if you wish to generate an error if the result will not fit in a PetscInt
This is used where we compute approximate sizes for workspace and need to insure the workspace is index-able.
Not available from Fortran