Home
last modified time | relevance | path

Searched refs:nGhost (Results 1 – 8 of 8) sorted by relevance

/petsc/src/dm/impls/stag/
H A Dstagutils.c342 if (m) *m = stag->nGhost[0]; in DMStagGetGhostCorners()
343 if (n) *n = stag->nGhost[1]; in DMStagGetGhostCorners()
344 if (p) *p = stag->nGhost[2]; in DMStagGetGhostCorners()
855 const PetscInt epr = stag->nGhost[0] * epe; in DMStagMigrateVec()
856 const PetscInt eprTo = stagTo->nGhost[0] * epeTo; in DMStagMigrateVec()
874 const PetscInt epr = stag->nGhost[0] * epe; in DMStagMigrateVec()
875 const PetscInt eprTo = stagTo->nGhost[0] * epeTo; in DMStagMigrateVec()
876 const PetscInt epl = stag->nGhost[1] * epr; in DMStagMigrateVec()
877 const PetscInt eplTo = stagTo->nGhost[1] * eprTo; in DMStagMigrateVec()
1620 …PetscCall(VecGetArray2d(vec, stag->nGhost[0], stag->entriesPerElement, stag->startGhost[0], 0, (Pe… in DMStagVecGetArray()
[all …]
H A Dstag3d.c382 stag->nGhost[d] = stag->n[d]; in DMSetUp_Stag_3d()
384 if (stag->lastRank[d]) stag->nGhost[d] += 1; in DMSetUp_Stag_3d()
388 stag->nGhost[d] = stag->n[d]; in DMSetUp_Stag_3d()
391 stag->nGhost[d] += stag->stencilWidth; /* add interior ghost elements */ in DMSetUp_Stag_3d()
395 stag->nGhost[d] += stag->stencilWidth; /* add interior ghost elements */ in DMSetUp_Stag_3d()
397 stag->nGhost[d] += 1; /* one element on the boundary to complete blocking */ in DMSetUp_Stag_3d()
408 stag->nGhost[d] = stag->n[d] + (stag->lastRank[d] ? 1 : 0); in DMSetUp_Stag_3d()
413 …stag->nGhost[d] = stag->n[d] + 2 * stag->stencilWidth + (stag->lastRank[d] && stag->stencilWid… in DMSetUp_Stag_3d()
422 stag->nGhost[d] = stag->n[d]; in DMSetUp_Stag_3d()
427 stag->nGhost[d] = stag->n[d] + 2 * stag->stencilWidth; in DMSetUp_Stag_3d()
[all …]
H A Dstag1d.c192 stag->nGhost[0] = stag->n[0] + (stag->lastRank[0] ? 1 : 0); in DMSetUp_Stag_1d()
197 stag->nGhost[0] = stag->n[0]; in DMSetUp_Stag_1d()
198 stag->nGhost[0] += stag->firstRank[0] ? 0 : stag->stencilWidth; in DMSetUp_Stag_1d()
199 stag->nGhost[0] += stag->lastRank[0] ? 1 : stag->stencilWidth; in DMSetUp_Stag_1d()
209 stag->nGhost[0] = stag->n[0] + (stag->lastRank[0] ? 1 : 0); in DMSetUp_Stag_1d()
214 …stag->nGhost[0] = stag->n[0] + 2 * stag->stencilWidth + (stag->lastRank[0] && stag->stencilWid… in DMSetUp_Stag_1d()
224 stag->nGhost[0] = stag->n[0]; in DMSetUp_Stag_1d()
229 stag->nGhost[0] = stag->n[0] + 2 * stag->stencilWidth; in DMSetUp_Stag_1d()
240 stag->entriesGhost = stag->nGhost[0] * stag->entriesPerElement; in DMSetUp_Stag_1d()
288 ghostOffsetEnd = stag->startGhost[0] + stag->nGhost[0] - (stag->start[0] + stag->n[0]); in DMSetUp_Stag_1d()
[all …]
H A Dstag2d.c293 stag->nGhost[d] = stag->n[d]; in DMSetUp_Stag_2d()
295 if (stag->lastRank[d]) stag->nGhost[d] += 1; in DMSetUp_Stag_2d()
299 stag->nGhost[d] = stag->n[d]; in DMSetUp_Stag_2d()
302 stag->nGhost[d] += stag->stencilWidth; /* add interior ghost elements */ in DMSetUp_Stag_2d()
306 stag->nGhost[d] += stag->stencilWidth; /* add interior ghost elements */ in DMSetUp_Stag_2d()
308 stag->nGhost[d] += 1; /* one element on the boundary to complete blocking */ in DMSetUp_Stag_2d()
319 stag->nGhost[d] = stag->n[d] + (stag->lastRank[d] ? 1 : 0); in DMSetUp_Stag_2d()
324 …stag->nGhost[d] = stag->n[d] + 2 * stag->stencilWidth + (stag->lastRank[d] && stag->stencilWid… in DMSetUp_Stag_2d()
333 stag->nGhost[d] = stag->n[d]; in DMSetUp_Stag_2d()
338 stag->nGhost[d] = stag->n[d] + 2 * stag->stencilWidth; in DMSetUp_Stag_2d()
[all …]
H A Dstagstencil.c398 const PetscInt epr = stag->nGhost[0]; in DMStagStencilToIndexLocal()
408 const PetscInt epr = stag->nGhost[0]; in DMStagStencilToIndexLocal()
409 const PetscInt epl = stag->nGhost[0] * stag->nGhost[1]; in DMStagStencilToIndexLocal()
H A Dstag.c855 …ements : %" PetscInt_FMT " (%" PetscInt_FMT " with ghosts)\n", rank, stag->n[0], stag->nGhost[0])); in DMView_Stag()
859 …" PetscInt_FMT " with ghosts)\n", rank, stag->n[0], stag->n[1], stag->nGhost[0], stag->nGhost[1])); in DMView_Stag()
864 … stag->n[2], stag->nGhost[0], stag->nGhost[1], stag->nGhost[2])); in DMView_Stag()
/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.h31 PetscInt nGhost[DMSTAG_MAX_DIM]; /* Local dimensions (w/ ghosts) */ member