#include "petscdmda.h" #undef __FUNCT__ #define __FUNCT__ "DMDAGetElements" PetscErrorCode DMDAGetElements(DM dm,PetscInt *nel,PetscInt *nen,const PetscInt *e[])Not Collective
nel | - number of local elements | |
nen | - number of element nodes | |
e | - the local indices of the elements' vertices |
Each process uniquely owns a subset of the elements. That is no element is owned by two or more processes.
If on each process you integrate over its owned elements and use ADD_VALUES in Vec/MatSetValuesLocal() then you'll obtain the correct result.
Level:intermediate
Location:src/dm/impls/da/dagetelem.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages