Searched refs:idownc (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/dm/impls/stag/ |
| H A D | stag2d.c | 61 PetscInt idownleftf, ileftf, idownf, ielemf, idownleftc, ileftc, idownc, ielemc; in DMStagRestrictSimple_2d() local 82 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_DOWN, 0, &idownc)); in DMStagRestrictSimple_2d() 107 …if (factorx % 2 == 0) arrc[j][i][idownc + d] = 0.5 * (arrf[jj][ii - 1][idownf + d] + arrf[jj][ii][… in DMStagRestrictSimple_2d() 108 else arrc[j][i][idownc + d] = arrf[jj][ii][idownf + d]; in DMStagRestrictSimple_2d()
|
| H A D | stag3d.c | 69 …PetscInt ibackdownleftc, ibackdownc, ibackleftc, ibackc, idownleftc, idownc, ileftc, … in DMStagRestrictSimple_3d() local 98 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_DOWN, 0, &idownc)); in DMStagRestrictSimple_3d() 159 …if (factorx % 2 == 0 && factorz % 2 == 0) arrc[k][j][i][idownc + d] = 0.25 * (arrf[kk - 1][jj][ii … in DMStagRestrictSimple_3d() 160 …else if (factorx % 2 == 0) arrc[k][j][i][idownc + d] = 0.5 * (arrf[kk][jj][ii - 1][idownf + d] + a… in DMStagRestrictSimple_3d() 161 …else if (factorz % 2 == 0) arrc[k][j][i][idownc + d] = 0.5 * (arrf[kk - 1][jj][ii][idownf + d] + a… in DMStagRestrictSimple_3d() 162 else arrc[k][j][i][idownc + d] = arrf[kk][jj][ii][idownf + d]; in DMStagRestrictSimple_3d()
|