Home
last modified time | relevance | path

Searched refs:bnd (Results 1 – 4 of 4) sorted by relevance

/petsc/src/dm/impls/stag/tests/
H A Dex7.c80 PetscBool bnd[3]; in main() local
81 bnd[0] = (PetscBool)((i == 0 || i == Nx - 1) && boundaryTypex != DM_BOUNDARY_PERIODIC); in main()
82 bnd[1] = (PetscBool)((j == 0 || j == Ny - 1) && boundaryTypey != DM_BOUNDARY_PERIODIC); in main()
83 bnd[2] = (PetscBool)((k == 0 || k == Nz - 1) && boundaryTypez != DM_BOUNDARY_PERIODIC); in main()
89 …for (dd = 0; dd < 3; ++dd) expected *= (bnd[dd] ? stencilWidth + 1 + extra[dd] : 2 * stencilWidth … in main()
97 PetscScalar expected = ((bnd[0] ? 1 : 2) * stencilWidth + 1); in main()
98 …for (dd = 1; dd < 3; ++dd) expected *= (bnd[dd] ? stencilWidth + 1 + extra[dd] : 2 * stencilWidth … in main()
106 PetscScalar expected = ((bnd[1] ? 1 : 2) * stencilWidth + 1); in main()
107 …for (dd = 0; dd < 3; dd += 2) expected *= (bnd[dd] ? stencilWidth + 1 + extra[dd] : 2 * stencilWid… in main()
115 PetscScalar expected = (bnd[2] ? stencilWidth + 1 + extra[2] : 2 * stencilWidth + 1); in main()
[all …]
H A Dex10.c74 PetscBool bnd[2]; in main() local
75 bnd[0] = (PetscBool)((i == 0 || i == Nx - 1) && boundaryTypex != DM_BOUNDARY_PERIODIC); in main()
76 bnd[1] = (PetscBool)((j == 0 || j == Ny - 1) && boundaryTypey != DM_BOUNDARY_PERIODIC); in main()
81 …for (dd = 0; dd < 2; ++dd) expected *= (bnd[dd] ? stencilWidth + 1 + extra[dd] : 2 * stencilWidth … in main()
89 PetscScalar expected = (bnd[1] ? stencilWidth + 1 + extra[1] : 2 * stencilWidth + 1); in main()
90 expected *= ((bnd[0] ? 1 : 2) * stencilWidth + 1); in main()
98 PetscScalar expected = (bnd[0] ? stencilWidth + 1 + extra[0] : 2 * stencilWidth + 1); in main()
99 expected *= ((bnd[1] ? 1 : 2) * stencilWidth + 1); in main()
108 for (dd = 0; dd < 2; ++dd) expected *= ((bnd[dd] ? 1 : 2) * stencilWidth + 1); in main()
/petsc/src/dm/impls/plex/tests/
H A Dex18.c232 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
[all …]
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas129 (virtualboundary/bnd-ext-fac 1.)
2404 (dpm/surface-injection/allow-non-bnd-surf-with-mdm? #f)