Home
last modified time | relevance | path

Searched refs:startGhost (Results 1 – 7 of 7) sorted by relevance

/petsc/src/dm/impls/stag/
H A Dstagutils.c339 if (x) *x = stag->startGhost[0]; in DMStagGetGhostCorners()
340 if (y) *y = stag->startGhost[1]; in DMStagGetGhostCorners()
341 if (z) *z = stag->startGhost[2]; in DMStagGetGhostCorners()
811 …PetscInt start[DMSTAG_MAX_DIM], startGhost[DMSTAG_MAX_DIM], n[DMSTAG_MAX_DIM], nExtra[DM… in DMStagMigrateVec() local
831 …PetscCall(DMStagGetGhostCorners(dm, &startGhost[0], &startGhost[1], &startGhost[2], NULL, NULL, NU… in DMStagMigrateVec()
832 for (i = 0; i < DMSTAG_MAX_DIM; ++i) offset[i] = start[i] - startGhost[i]; in DMStagMigrateVec()
1620 …PetscCall(VecGetArray2d(vec, stag->nGhost[0], stag->entriesPerElement, stag->startGhost[0], 0, (Pe… in DMStagVecGetArray()
1623 …->nGhost[1], stag->nGhost[0], stag->entriesPerElement, stag->startGhost[1], stag->startGhost[0], 0… in DMStagVecGetArray()
1626 …, stag->nGhost[0], stag->entriesPerElement, stag->startGhost[2], stag->startGhost[1], stag->startG… in DMStagVecGetArray()
1669 …PetscCall(VecGetArray2dRead(vec, stag->nGhost[0], stag->entriesPerElement, stag->startGhost[0], 0,… in DMStagVecGetArrayRead()
[all …]
H A Dstag1d.c191 stag->startGhost[0] = stag->start[0]; in DMSetUp_Stag_1d()
196 … stag->startGhost[0] = stag->firstRank[0] ? stag->start[0] : stag->start[0] - stag->stencilWidth; in DMSetUp_Stag_1d()
208 stag->startGhost[0] = stag->start[0]; in DMSetUp_Stag_1d()
213 stag->startGhost[0] = stag->start[0] - stag->stencilWidth; /* This value may be negative */ in DMSetUp_Stag_1d()
223 stag->startGhost[0] = stag->start[0]; in DMSetUp_Stag_1d()
228 stag->startGhost[0] = stag->start[0] - stag->stencilWidth; /* This value may be negative */ in DMSetUp_Stag_1d()
287 ghostOffsetStart = stag->start[0] - stag->startGhost[0]; in DMSetUp_Stag_1d()
288 ghostOffsetEnd = stag->startGhost[0] + stag->nGhost[0] - (stag->start[0] + stag->n[0]); in DMSetUp_Stag_1d()
312 for (i = stag->startGhost[0], iLocal = 0; iLocal < nNonDummyGhost; ++i, ++iLocal) { in DMSetUp_Stag_1d()
336 const PetscInt iMin = stag->firstRank[0] ? stag->start[0] : stag->startGhost[0]; in DMSetUp_Stag_1d()
[all …]
H A Dstagstencil.c393 const PetscInt eLocal = pos[idx].i - stag->startGhost[0]; in DMStagStencilToIndexLocal()
401 const PetscInt eLocalx = pos[idx].i - stag->startGhost[0]; in DMStagStencilToIndexLocal()
402 const PetscInt eLocaly = pos[idx].j - stag->startGhost[1]; in DMStagStencilToIndexLocal()
412 const PetscInt eLocalx = pos[idx].i - stag->startGhost[0]; in DMStagStencilToIndexLocal()
413 const PetscInt eLocaly = pos[idx].j - stag->startGhost[1]; in DMStagStencilToIndexLocal()
414 const PetscInt eLocalz = pos[idx].k - stag->startGhost[2]; in DMStagStencilToIndexLocal()
H A Dstag2d.c294 stag->startGhost[d] = stag->start[d]; in DMSetUp_Stag_2d()
300 stag->startGhost[d] = stag->start[d]; in DMSetUp_Stag_2d()
303 stag->startGhost[d] -= stag->stencilWidth; in DMSetUp_Stag_2d()
318 stag->startGhost[d] = stag->start[d]; in DMSetUp_Stag_2d()
323 stag->startGhost[d] = stag->start[d] - stag->stencilWidth; /* This value may be negative */ in DMSetUp_Stag_2d()
334 stag->startGhost[d] = stag->start[d]; in DMSetUp_Stag_2d()
339 stag->startGhost[d] = stag->start[d] - stag->stencilWidth; in DMSetUp_Stag_2d()
409 for (d = 0; d < 2; ++d) ghostOffsetStart[d] = stag->start[d] - stag->startGhost[d]; in DMSetUp_Stag_2d()
410 …for (d = 0; d < 2; ++d) ghostOffsetEnd[d] = stag->startGhost[d] + stag->nGhost[d] - (stag->start[d… in DMSetUp_Stag_2d()
1182 for (d = 0; d < 2; ++d) ghostOffsetStart[d] = stag->start[d] - stag->startGhost[d]; in DMStagPopulateLocalToGlobalInjective_2d()
[all …]
H A Dstag3d.c383 stag->startGhost[d] = stag->start[d]; in DMSetUp_Stag_3d()
389 stag->startGhost[d] = stag->start[d]; in DMSetUp_Stag_3d()
392 stag->startGhost[d] -= stag->stencilWidth; in DMSetUp_Stag_3d()
407 stag->startGhost[d] = stag->start[d]; in DMSetUp_Stag_3d()
412 stag->startGhost[d] = stag->start[d] - stag->stencilWidth; /* This value may be negative */ in DMSetUp_Stag_3d()
423 stag->startGhost[d] = stag->start[d]; in DMSetUp_Stag_3d()
428 stag->startGhost[d] = stag->start[d] - stag->stencilWidth; in DMSetUp_Stag_3d()
998 for (d = 0; d < 3; ++d) ghostOffsetStart[d] = stag->start[d] - stag->startGhost[d]; in DMStagSetUpBuildScatter_3d()
999 …for (d = 0; d < 3; ++d) ghostOffsetEnd[d] = stag->startGhost[d] + stag->nGhost[d] - (stag->start[d… in DMStagSetUpBuildScatter_3d()
1667 for (d = 0; d < 3; ++d) ghostOffsetStart[d] = stag->start[d] - stag->startGhost[d]; in DMStagSetUpBuildL2G_3d()
[all …]
/petsc/src/dm/impls/stag/tests/
H A Dex5.c114 PetscInt start, n, nExtra, ex, idxP, idxU, startGhost, nGhost; in ApplyOperator() local
127 PetscCall(DMStagGetGhostCorners(dm, &startGhost, NULL, NULL, &nGhost, NULL, NULL)); in ApplyOperator()
/petsc/include/petsc/private/
H A Ddmstagimpl.h33 PetscInt startGhost[DMSTAG_MAX_DIM]; /* First element number (w/ ghosts) */ member