petsc-3.7.1 2016-05-15
Report Typos and Errors

DMDACreateSection

Create a PetscSection inside the DMDA that describes data layout. This allows multiple fields with different numbers of dofs on vertices, cells, and faces in each direction.

Synopsis

#include "petscdmda.h"   
PetscErrorCode DMDACreateSection(DM dm, const PetscInt numComp[], const PetscInt numDof[], const PetscInt numFaceDof[], PetscSection *s)

Input Parameters

Many br

Note

The default DMDA numbering is as follows

- Cells: [0, nC) Many br- Vertices: [nC, nC+nV) Many br- X-Faces: [nC+nV, nC+nV+nXF) normal is +- x-dir Many br- Y-Faces: [nC+nV+nXF, nC+nV+nXF+nYF) normal is +- y-dir Many br- Z-Faces: [nC+nV+nXF+nYF, nC+nV+nXF+nYF+nZF) normal is +- z-dir Many br

We interpret the default DMDA partition as a cell partition, and the data assignment as a cell assignment. Many br

Level:developer
Location:
src/dm/impls/da/dalocal.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages

dm- The DMDA Many br
numFields - The number of fields Many br
numComp - The number of components in each field Many br
numDof - The number of dofs per dimension for each field Many br
numFaceDof - The number of dofs per face for each field and direction, or NULL Many br