#include "petscdm.h" #include "petscdmlabel.h" #include "petscds.h" PetscErrorCode DMCreateSectionSF(DM dm, PetscSection localSection, PetscSection globalSection)
dm | - The DM | |
localSection | - PetscSection describing the local data layout | |
globalSection | - PetscSection describing the global data layout |
Notes: One usually uses DMGetSectionSF() to obtain the PetscSF
Developer Note: Since this routine has for arguments the two sections from the DM and puts the resulting PetscSF directly into the DM, perhaps this function should not take the local and global sections as input and should just obtain them from the DM?