VecOption#
Options that may be set for a vector regarding entries passed to VecSetValues() and related routines
Synopsis#
typedef enum {
VEC_IGNORE_OFF_PROC_ENTRIES,
VEC_IGNORE_NEGATIVE_INDICES,
VEC_SUBSET_OFF_PROC_ENTRIES
} VecOption;
Values#
VEC_IGNORE_OFF_PROC_ENTRIES- causesVecSetValues()to ignore entries destined to be stored on a separate processor. This can be used to eliminate the global reduction inVecAssemblyBegin()if you know that you have only usedVecSetValues()to set local elementsVEC_IGNORE_NEGATIVE_INDICES- means you can pass negative indices inixin calls toVecSetValues()orVecGetValues(). These rows are simply ignored.VEC_SUBSET_OFF_PROC_ENTRIES- causesVecAssemblyBegin()to assume that the off-process entries will always be a subset (possibly equal) of the off-process entries set on the first assembly which had a trueVEC_SUBSET_OFF_PROC_ENTRIESand the vector has not changed this flag afterwards. If this assembly is not such first assembly, then this assembly can reuse the communication pattern setup in that first assembly, thus avoiding a global reduction. Subsequent assemblies setting off-process values should use the sameInsertModeas the first assembly.
See Also#
Matrices, Vec, MatSetOption(), VecSetOption(), VecSetValues(), VecAssemblyBegin()
Level#
beginner
Location#
Examples#
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages