VarOrderingCreateSubset

This function creates a new global variable ordering from an existing one on a subset of the fields.

Synopsis

#include "grid.h" 
int VarOrderingCreateSubset(VarOrdering order, int numFields, int *fields, PetscTruth contract, VarOrdering *newOrder)
Collective on Grid

Input Parameters

order - The original ordering
numFields - The number of fields in the new ordering
fields - The fields in the new ordering
contract - The flag for contracting the indices

Output Parameter

newOrder -The new ordering

Note

If contract is PETSC_FALSE, this function returns a copy of the original ordering, but with some fields no longer active.

Keywords

variable ordering, create

See Also

VarOrderingCreate(), VarOrderingDestroy()

Level:beginner
Location:
src/grid/interface/varorder.c
Index of all Grid routines
Table of Contents for all manual pages
Index of all manual pages