Home
last modified time | relevance | path

Searched refs:sectionCell (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ts/tutorials/
H A Dex11.c722 PetscSection sectionCell; in CreatePartitionVec() local
736 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dm), &sectionCell)); in CreatePartitionVec()
738 PetscCall(PetscSectionSetChart(sectionCell, cStart, cEnd)); in CreatePartitionVec()
739 for (c = cStart; c < cEnd; ++c) PetscCall(PetscSectionSetDof(sectionCell, c, 1)); in CreatePartitionVec()
740 PetscCall(PetscSectionSetUp(sectionCell)); in CreatePartitionVec()
741 PetscCall(DMSetLocalSection(*dmCell, sectionCell)); in CreatePartitionVec()
742 PetscCall(PetscSectionDestroy(&sectionCell)); in CreatePartitionVec()
/petsc/src/dm/impls/plex/
H A Dplexgeometry.c2973 PetscSection sectionFace, sectionCell; in DMPlexComputeGeometryFVM() local
2988 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dm), &sectionCell)); in DMPlexComputeGeometryFVM()
2991 PetscCall(PetscSectionSetChart(sectionCell, cStart, cEnd)); in DMPlexComputeGeometryFVM()
2992 …for (c = cStart; c < cEnd; ++c) PetscCall(PetscSectionSetDof(sectionCell, c, (PetscInt)PetscCeilRe… in DMPlexComputeGeometryFVM()
2993 PetscCall(PetscSectionSetUp(sectionCell)); in DMPlexComputeGeometryFVM()
2994 PetscCall(DMSetLocalSection(dmCell, sectionCell)); in DMPlexComputeGeometryFVM()
2995 PetscCall(PetscSectionDestroy(&sectionCell)); in DMPlexComputeGeometryFVM()