PetscCount — PETSc 3.25.0 documentation

Skip to main content
`Ctrl`+`K`

# PetscCount

signed datatype used to represent counts

## Notes

This is equivalent to `ptrdiff_t`, but defined for consistency with Fortran, which lacks a native equivalent of `ptrdiff_t`.

Use `PetscCount_FMT` to format with `PetscPrintf()`, `printf()`, and related functions.

## See Also

PETSc and standard datatypes, `PetscInt`, `PetscInt64`, `PetscSizeT`

## Level

intermediate

## Location

include/petscsystypes.h

## Examples

src/ksp/ksp/tutorials/ex88f.F90
src/snes/tutorials/ex55k.kokkos.cxx
src/ksp/ksp/tutorials/ex83f.F90

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