Searched refs:ileftc (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/dm/impls/stag/ |
| H A D | stag1d.c | 55 PetscInt ileftf, ielemf, ileftc, ielemc; in DMStagRestrictSimple_1d() local 71 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_LEFT, 0, &ileftc)); in DMStagRestrictSimple_1d() 75 for (i = xc; i < xc + mc + nExtraxc; ++i) arrc[i][ileftc + d] = arrf[factorx * i][ileftf + d]; in DMStagRestrictSimple_1d()
|
| H A D | stag2d.c | 61 PetscInt idownleftf, ileftf, idownf, ielemf, idownleftc, ileftc, idownc, ielemc; in DMStagRestrictSimple_2d() local 81 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_LEFT, 0, &ileftc)); in DMStagRestrictSimple_2d() 98 …if (factory % 2 == 0) arrc[j][i][ileftc + d] = 0.5 * (arrf[jj - 1][ii][ileftf + d] + arrf[jj][ii][… in DMStagRestrictSimple_2d() 99 else arrc[j][i][ileftc + d] = arrf[jj][ii][ileftf + d]; in DMStagRestrictSimple_2d()
|
| H A D | stag3d.c | 69 …PetscInt ibackdownleftc, ibackdownc, ibackleftc, ibackc, idownleftc, idownc, ileftc, … in DMStagRestrictSimple_3d() local 99 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_LEFT, 0, &ileftc)); in DMStagRestrictSimple_3d() 171 …if (factory % 2 == 0 && factorz % 2 == 0) arrc[k][j][i][ileftc + d] = 0.25 * (arrf[kk - 1][jj - 1]… in DMStagRestrictSimple_3d() 172 …else if (factory % 2 == 0) arrc[k][j][i][ileftc + d] = 0.5 * (arrf[kk][jj - 1][ii][ileftf + d] + a… in DMStagRestrictSimple_3d() 173 …else if (factorz % 2 == 0) arrc[k][j][i][ileftc + d] = 0.5 * (arrf[kk - 1][jj][ii][ileftf + d] + a… in DMStagRestrictSimple_3d() 174 else arrc[k][j][i][ileftc + d] = arrf[kk][jj][ii][ileftf + d]; in DMStagRestrictSimple_3d()
|