petsc-3.6.4 2016-04-12
Report Typos and Errors


Creates a set of IS objects with the global indices of dofs for each field


#include "petscdm.h"     
PetscErrorCode DMCreateFieldIS(DM dm, PetscInt *numFields, char ***fieldNames, IS **fields)
Not collective

Input Parameter

dm -the DM object

Output Parameters

numFields - The number of fields (or NULL if not requested)
fieldNames - The name for each field (or NULL if not requested)
fields - The global indices for each field (or NULL if not requested)


The user is responsible for freeing all requested arrays. In particular, every entry of names should be freed with PetscFree(), every entry of fields should be destroyed with ISDestroy(), and both arrays should be freed with PetscFree().

See Also

DMDestroy(), DMView(), DMCreateInterpolation(), DMCreateColoring(), DMCreateMatrix()

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