Home
last modified time | relevance | path

Searched refs:idxRemap (Results 1 – 3 of 3) sorted by relevance

/petsc/src/dm/impls/stag/
H A Dstag1d.c505 PetscInt *idxRemap; in DMStagPopulateLocalToLocal1d_Internal() local
510 PetscCall(PetscMalloc1(stag->entries, &idxRemap)); in DMStagPopulateLocalToLocal1d_Internal()
513 for (i = 0; i < stag->entries; ++i) idxRemap[i] = leftGhostEntries + i; in DMStagPopulateLocalToLocal1d_Internal()
515 PetscCall(VecScatterRemap(stag->ltol, idxRemap, NULL)); in DMStagPopulateLocalToLocal1d_Internal()
516 PetscCall(PetscFree(idxRemap)); in DMStagPopulateLocalToLocal1d_Internal()
H A Dstag2d.c1247 PetscInt *idxRemap; in DMStagPopulateLocalToLocal2d_Internal() local
1254 PetscCall(PetscMalloc1(stag->entries, &idxRemap)); in DMStagPopulateLocalToLocal2d_Internal()
1270 for (d = 0; d < stag->entriesPerElement; ++d) idxRemap[count++] = jOffset + iOffset + d; in DMStagPopulateLocalToLocal2d_Internal()
1275 for (d = 0; d < stag->dof[0]; ++d) idxRemap[count++] = jOffset + iOffset + dOffset[0] + d; in DMStagPopulateLocalToLocal2d_Internal()
1276 for (d = 0; d < stag->dof[1]; ++d) idxRemap[count++] = jOffset + iOffset + dOffset[2] + d; in DMStagPopulateLocalToLocal2d_Internal()
1284 for (d = 0; d < stag->dof[0]; ++d) idxRemap[count++] = jOffset + iOffset + dOffset[0] + d; in DMStagPopulateLocalToLocal2d_Internal()
1285 for (d = 0; d < stag->dof[1]; ++d) idxRemap[count++] = jOffset + iOffset + dOffset[1] + d; in DMStagPopulateLocalToLocal2d_Internal()
1290 for (d = 0; d < stag->dof[0]; ++d) idxRemap[count++] = jOffset + iOffset + dOffset[0] + d; in DMStagPopulateLocalToLocal2d_Internal()
1296 PetscCall(VecScatterRemap(stag->ltol, idxRemap, NULL)); in DMStagPopulateLocalToLocal2d_Internal()
1297 PetscCall(PetscFree(idxRemap)); in DMStagPopulateLocalToLocal2d_Internal()
H A Dstag3d.c3290 PetscInt *idxRemap; in DMStagPopulateLocalToLocal3d_Internal() local
3298 PetscCall(PetscMalloc1(stag->entries, &idxRemap)); in DMStagPopulateLocalToLocal3d_Internal()
3322 … for (d = 0; d < stag->entriesPerElement; ++d) idxRemap[count++] = kOffset + jOffset + iOffset + d; in DMStagPopulateLocalToLocal3d_Internal()
3327 …for (d = 0; d < stag->dof[0]; ++d) idxRemap[count++] = kOffset + jOffset + iOffset + dOffset[0] + … in DMStagPopulateLocalToLocal3d_Internal()
3328 …for (d = 0; d < stag->dof[1]; ++d) idxRemap[count++] = kOffset + jOffset + iOffset + dOffset[2] + … in DMStagPopulateLocalToLocal3d_Internal()
3329 …for (d = 0; d < stag->dof[1]; ++d) idxRemap[count++] = kOffset + jOffset + iOffset + dOffset[4] + … in DMStagPopulateLocalToLocal3d_Internal()
3330 …for (d = 0; d < stag->dof[2]; ++d) idxRemap[count++] = kOffset + jOffset + iOffset + dOffset[6] + … in DMStagPopulateLocalToLocal3d_Internal()
3338 …for (d = 0; d < stag->dof[0]; ++d) idxRemap[count++] = kOffset + jOffset + iOffset + dOffset[0] + … in DMStagPopulateLocalToLocal3d_Internal()
3339 …for (d = 0; d < stag->dof[1]; ++d) idxRemap[count++] = kOffset + jOffset + iOffset + dOffset[1] + … in DMStagPopulateLocalToLocal3d_Internal()
3340 …for (d = 0; d < stag->dof[1]; ++d) idxRemap[count++] = kOffset + jOffset + iOffset + dOffset[4] + … in DMStagPopulateLocalToLocal3d_Internal()
[all …]