PETSC_DETERMINE#
standard way of passing an integer or floating point parameter to indicate PETSc should determine an appropriate value
Example Usage#
VecSetSizes(ksp, 10, PETSC_DETERMINE);
indicates that the local size of the vector is 10 and the global size will be automatically summing up all the local sizes.
Note#
Same as PETSC_DECIDE
Fortran Note#
Use PETSC_DETERMINE_INTEGER
or PETSC_DETERMINE_REAL
.
Developer Note#
I would like to use const PetscInt
PETSC_DETERMINE
= PETSC_DECIDE
; but for
some reason this is not allowed by the standard even though PETSC_DECIDE
is a constant value.
See Also#
PETSC_DECIDE
, PETSC_DEFAULT
, PETSC_IGNORE
, VecSetSizes()
, `PETSC_UNLIMITED’
Level#
beginner
Location#
Examples#
src/tao/pde_constrained/tutorials/parabolic.c
src/tao/constrained/tutorials/tomographyADMM.c
src/vec/vec/utils/tagger/tutorials/ex1.c
src/tao/tutorials/ex4.c
src/tao/pde_constrained/tutorials/hyperbolic.c
src/dm/impls/forest/tutorials/ex1.c
src/vec/is/sf/tutorials/ex2.c
src/dm/impls/plex/tutorials/ex15.c
src/vec/is/sf/tutorials/ex3.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages