Searched refs:sectionCell (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/ts/tutorials/ |
| H A D | ex11.c | 722 PetscSection sectionCell; in CreatePartitionVec() local 736 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dm), §ionCell)); 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(§ionCell)); in CreatePartitionVec()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexgeometry.c | 2973 PetscSection sectionFace, sectionCell; in DMPlexComputeGeometryFVM() local 2988 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dm), §ionCell)); 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(§ionCell)); in DMPlexComputeGeometryFVM()
|