Home
last modified time | relevance | path

Searched refs:boundaryType (Results 1 – 9 of 9) sorted by relevance

/petsc/src/dm/impls/stag/
H A Dstag1d.c170 switch (stag->boundaryType[0]) { in DMSetUp_Stag_1d()
179 …ject)dm), PETSC_ERR_SUP, "Unsupported x boundary type %s", DMBoundaryTypes[stag->boundaryType[0]]); in DMSetUp_Stag_1d()
187 switch (stag->boundaryType[0]) { in DMSetUp_Stag_1d()
236 …ject)dm), PETSC_ERR_SUP, "Unsupported x boundary type %s", DMBoundaryTypes[stag->boundaryType[0]]); in DMSetUp_Stag_1d()
245 switch (stag->boundaryType[0]) { in DMSetUp_Stag_1d()
254 …ject)dm), PETSC_ERR_SUP, "Unsupported x boundary type %s", DMBoundaryTypes[stag->boundaryType[0]]); in DMSetUp_Stag_1d()
261 switch (stag->boundaryType[0]) { in DMSetUp_Stag_1d()
270 …ject)dm), PETSC_ERR_SUP, "Unsupported x boundary type %s", DMBoundaryTypes[stag->boundaryType[0]]); in DMSetUp_Stag_1d()
294 switch (stag->boundaryType[0]) { in DMSetUp_Stag_1d()
303 …ject)dm), PETSC_ERR_SUP, "Unsupported x boundary type %s", DMBoundaryTypes[stag->boundaryType[0]]); in DMSetUp_Stag_1d()
[all …]
H A Dstagintern.c46 …PetscCall(DMStagInitialize(stag->boundaryType[0], stag->boundaryType[1], stag->boundaryType[2], st… in DMStagDuplicateWithoutSetup()
H A Dstagda.c115 …PetscCall(DMDACreate1d(PetscObjectComm((PetscObject)dm), stag->boundaryType[0], N[0], dof, stencil… in DMStagCreateCompatibleDMDA()
118 …cCall(DMDACreate2d(PetscObjectComm((PetscObject)dm), stag->boundaryType[0], stag->boundaryType[1],… in DMStagCreateCompatibleDMDA()
121 …eate3d(PetscObjectComm((PetscObject)dm), stag->boundaryType[0], stag->boundaryType[1], stag->bound… in DMStagCreateCompatibleDMDA()
H A Dstag.c619 if (stag->boundaryType[i] != stag2->boundaryType[i]) { in DMGetCompatibility_Stag()
620 …cInt_FMT ": %s != %s\n", i, DMBoundaryTypes[stag->boundaryType[i]], DMBoundaryTypes[stag2->boundar… in DMGetCompatibility_Stag()
836 …dim; ++i) PetscCall(PetscViewerASCIIPrintf(viewer, " %s", DMBoundaryTypes[stag->boundaryType[i]])); in DMView_Stag()
896 …etBoundaryTypes", DMBoundaryTypes, (PetscEnum)stag->boundaryType[0], (PetscEnum *)&stag->boundaryT… in DMSetFromOptions_Stag()
897 …etBoundaryTypes", DMBoundaryTypes, (PetscEnum)stag->boundaryType[1], (PetscEnum *)&stag->boundaryT… in DMSetFromOptions_Stag()
898 …etBoundaryTypes", DMBoundaryTypes, (PetscEnum)stag->boundaryType[2], (PetscEnum *)&stag->boundaryT… in DMSetFromOptions_Stag()
H A Dstag2d.c266 …for (d = 0; d < 2; ++d) dummyStart[d] = (PetscBool)(stag->firstRank[d] && stag->boundaryType[d] !=… in DMSetUp_Stag_2d()
267 …for (d = 0; d < 2; ++d) dummyEnd[d] = (PetscBool)(stag->lastRank[d] && stag->boundaryType[d] != DM… in DMSetUp_Stag_2d()
282 …PetscCheck(stag->boundaryType[d] == DM_BOUNDARY_NONE || stag->boundaryType[d] == DM_BOUNDARY_PERIO… in DMSetUp_Stag_2d()
288 switch (stag->boundaryType[d]) { in DMSetUp_Stag_2d()
413 …for (d = 0; d < 2; ++d) nextToDummyEnd[d] = (PetscBool)(stag->boundaryType[d] != DM_BOUNDARY_PERIO… in DMSetUp_Stag_2d()
974 …if ((stag->boundaryType[0] == DM_BOUNDARY_PERIODIC && stag->nRanks[0] == 1) || (stag->boundaryType in DMSetUp_Stag_2d()
1047 …PetscCheck(stag->boundaryType[d] == DM_BOUNDARY_NONE || stag->boundaryType[d] == DM_BOUNDARY_PERIO… in DMStagSetUpBuildNeighbors_2d()
1048 DMBoundaryTypes[stag->boundaryType[d]]); in DMStagSetUpBuildNeighbors_2d()
1052 per[d] = (PetscBool)(stag->boundaryType[d] == DM_BOUNDARY_PERIODIC); in DMStagSetUpBuildNeighbors_2d()
1109 …for (d = 0; d < 2; ++d) extra[d] = (PetscBool)(stag->boundaryType[d] != DM_BOUNDARY_PERIODIC); /* … in DMStagSetUpBuildGlobalOffsets_2d()
[all …]
H A Dstagutils.c32 if (boundaryTypeX) *boundaryTypeX = stag->boundaryType[0]; in DMStagGetBoundaryTypes()
33 if (boundaryTypeY && dim > 1) *boundaryTypeY = stag->boundaryType[1]; in DMStagGetBoundaryTypes()
34 if (boundaryTypeZ && dim > 2) *boundaryTypeZ = stag->boundaryType[2]; in DMStagGetBoundaryTypes()
273 …if (nExtrax) *nExtrax = stag->boundaryType[0] != DM_BOUNDARY_PERIODIC && stag->lastRank[0] ? 1 : 0; in DMStagGetCorners()
274 …if (nExtray) *nExtray = stag->boundaryType[1] != DM_BOUNDARY_PERIODIC && stag->lastRank[1] ? 1 : 0; in DMStagGetCorners()
275 …if (nExtraz) *nExtraz = stag->boundaryType[2] != DM_BOUNDARY_PERIODIC && stag->lastRank[2] ? 1 : 0; in DMStagGetCorners()
1089 stag->boundaryType[0] = boundaryType0; in DMStagSetBoundaryTypes()
1090 if (dim > 1) stag->boundaryType[1] = boundaryType1; in DMStagSetBoundaryTypes()
1091 if (dim > 2) stag->boundaryType[2] = boundaryType2; in DMStagSetBoundaryTypes()
1542 …PetscCall(DMStagCreate1d(subcomm, stag->boundaryType[d], stag->N[d], dof0, dof1, stag->stencilType… in DMStagSetUniformCoordinatesProduct()
H A Dstag3d.c349 …for (d = 0; d < 3; ++d) dummyEnd[d] = (PetscBool)(stag->lastRank[d] && stag->boundaryType[d] != DM… in DMSetUp_Stag_3d()
373 …PetscCheck(stag->boundaryType[d] == DM_BOUNDARY_NONE || stag->boundaryType[d] == DM_BOUNDARY_PERIO… in DMSetUp_Stag_3d()
377 switch (stag->boundaryType[d]) { in DMSetUp_Stag_3d()
445boundaryType[0] == DM_BOUNDARY_PERIODIC && stag->nRanks[0] == 1) || (stag->boundaryType[1] == DM_B… in DMSetUp_Stag_3d()
602 …PetscCheck(stag->boundaryType[d] == DM_BOUNDARY_NONE || stag->boundaryType[d] == DM_BOUNDARY_PERIO… in DMStagSetUpBuildNeighbors_3d()
603 DMBoundaryTypes[stag->boundaryType[d]]); in DMStagSetUpBuildNeighbors_3d()
607 per[d] = (PetscBool)(stag->boundaryType[d] == DM_BOUNDARY_PERIODIC); in DMStagSetUpBuildNeighbors_3d()
745 …for (d = 0; d < 3; ++d) extra[d] = (PetscBool)(stag->boundaryType[d] != DM_BOUNDARY_PERIODIC); /* … in DMStagSetUpBuildGlobalOffsets_3d()
1010 …for (d = 0; d < 3; ++d) dummyStart[d] = (PetscBool)(stag->firstRank[d] && stag->boundaryType[d] !=… in DMStagSetUpBuildScatter_3d()
1011 …for (d = 0; d < 3; ++d) dummyEnd[d] = (PetscBool)(stag->lastRank[d] && stag->boundaryType[d] != DM… in DMStagSetUpBuildScatter_3d()
[all …]
/petsc/src/dm/impls/stag/tests/
H A Dex5.c115 DMBoundaryType boundaryType; in ApplyOperator() local
120 PetscCall(DMStagGetBoundaryTypes(dm, &boundaryType, NULL, NULL)); in ApplyOperator()
121 …PetscCheck(boundaryType == DM_BOUNDARY_GHOSTED, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_IN… in ApplyOperator()
/petsc/include/petsc/private/
H A Ddmstagimpl.h21 DMBoundaryType boundaryType[DMSTAG_MAX_DIM]; /* Physical domain ghosting type */ member