PetscSectionCreateSubdomainSection#

Create a new, smaller section with support on a subdomain of the mesh

Synopsis#

#include "petscsection.h"   
PetscErrorCode PetscSectionCreateSubdomainSection(PetscSection s, IS subpointMap, PetscSection *subs)

Collective

Input Parameters#

  • s - the PetscSection

  • subpointMap - a sorted list of points in the original mesh which are in the subdomain

Output Parameter#

  • subs - the subsection

Note#

The point numbers remain the same, but the section offsets now refer to a new, smaller vector.

Developer Notes#

It is unclear what the difference with PetscSectionCreateSubmeshSection() is.

The use of the term Subdomain is unneeded and confusing

See Also#

PetscSection, PetscSection, PetscSectionCreateSubmeshSection(), PetscSectionCreateSubsection(), DMPlexGetSubpointMap(), PetscSectionCreate()

Level#

advanced

Location#

src/vec/is/section/interface/section.c


Edit on GitLab

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