Lines Matching refs:bnd
232 static PetscErrorCode PortableBoundaryDestroy(PortableBoundary *bnd) in PortableBoundaryDestroy() argument
237 if (!*bnd) PetscFunctionReturn(PETSC_SUCCESS); in PortableBoundaryDestroy()
238 PetscCall(VecDestroy(&(*bnd)->coordinates)); in PortableBoundaryDestroy()
239 for (d = 0; d < (*bnd)->depth; d++) PetscCall(PetscSectionDestroy(&(*bnd)->sections[d])); in PortableBoundaryDestroy()
240 PetscCall(PetscFree((*bnd)->sections)); in PortableBoundaryDestroy()
241 PetscCall(PetscFree(*bnd)); in PortableBoundaryDestroy()
1042 …orCode DMPlexExpandedVerticesCoordinatesToFaces_Private(DM ipdm, PortableBoundary bnd, IS *face_is) in DMPlexExpandedVerticesCoordinatesToFaces_Private() argument
1047 PetscCall(DMPlexFindVertices(ipdm, bnd->coordinates, 0.0, &faces_expanded_is)); in DMPlexExpandedVerticesCoordinatesToFaces_Private()
1048 …PetscCall(DMPlexExpandedVerticesToFaces_Private(ipdm, faces_expanded_is, bnd->depth, bnd->sections… in DMPlexExpandedVerticesCoordinatesToFaces_Private()
1094 PortableBoundary bnd0, bnd; in DMPlexGetExpandedBoundary_Private() local
1109 PetscCall(PetscNew(&bnd)); in DMPlexGetExpandedBoundary_Private()
1170 PetscCall(VecCreateFromOptions(comm, NULL, 1, n, n * size, &bnd->coordinates)); in DMPlexGetExpandedBoundary_Private()
1172 PetscCall(VecScatterCreate(bnd0->coordinates, xis, bnd->coordinates, NULL, &sc)); in DMPlexGetExpandedBoundary_Private()
1173 …PetscCall(VecScatterBegin(sc, bnd0->coordinates, bnd->coordinates, INSERT_VALUES, SCATTER_FORWARD)… in DMPlexGetExpandedBoundary_Private()
1174 … PetscCall(VecScatterEnd(sc, bnd0->coordinates, bnd->coordinates, INSERT_VALUES, SCATTER_FORWARD)); in DMPlexGetExpandedBoundary_Private()
1178 bnd->depth = bnd0->depth; in DMPlexGetExpandedBoundary_Private()
1179 PetscCallMPI(MPI_Bcast(&bnd->depth, 1, MPIU_INT, rootrank, comm)); in DMPlexGetExpandedBoundary_Private()
1180 PetscCall(PetscMalloc1(bnd->depth, &bnd->sections)); in DMPlexGetExpandedBoundary_Private()
1181 …r (d = 0; d < bnd->depth; d++) PetscCall(PetscSectionReplicate_Private(comm, rootrank, (rank == ro… in DMPlexGetExpandedBoundary_Private()
1189 *boundary = bnd; in DMPlexGetExpandedBoundary_Private()
1471 static PetscErrorCode DMPlexCheckPointSFHeavy(DM dm, PortableBoundary bnd) in DMPlexCheckPointSFHeavy() argument
1493 PetscCall(DMPlexExpandedVerticesCoordinatesToFaces_Private(ipdm, bnd, &boundary_faces_is)); in DMPlexCheckPointSFHeavy()