Searched refs:factorz (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/dm/impls/stag/ |
| H A D | stagmulti.c | 646 PetscInt Mc, Nc, Pc, Mf, Nf, Pf, factorx, factory, factorz, dof[4]; in DMStagPopulateInterpolation3d_Internal() local 658 factorz = Pf / Pc; in DMStagPopulateInterpolation3d_Internal() 680 colc[count].k = k / factorz; in DMStagPopulateInterpolation3d_Internal() 693 PetscCall(SetInterpolationCoefficientVertex_Private(k, factorz, &az)); in DMStagPopulateInterpolation3d_Internal() 707 const PetscBool belowHalfz = (PetscBool)(2 * (k % factorz) + 1 < factorz); in DMStagPopulateInterpolation3d_Internal() 717 colc[count].k = k / factorz; in DMStagPopulateInterpolation3d_Internal() 732 PetscCall(SetInterpolationCoefficientCenter_Private(belowHalfz, k, factorz, &az)); in DMStagPopulateInterpolation3d_Internal() 735 … if (k / factorz == 0 && belowHalfz) PetscCall(MergeInterpolationWeightToFront3d_Private(weight)); in DMStagPopulateInterpolation3d_Internal() 736 …else if (k / factorz == Pc - 1 && !belowHalfz) PetscCall(MergeInterpolationWeightToBack3d_Private(… in DMStagPopulateInterpolation3d_Internal() 759 colc[count].k = k / factorz; in DMStagPopulateInterpolation3d_Internal() [all …]
|
| H A D | stag3d.c | 66 PetscInt Mf, Nf, Pf, Mc, Nc, Pc, factorx, factory, factorz, dof[4]; in DMStagRestrictSimple_3d() local 78 factorz = Pf / Pc; in DMStagRestrictSimple_3d() 106 const PetscInt ii = i * factorx, jj = j * factory, kk = k * factorz; in DMStagRestrictSimple_3d() 115 const PetscInt ii = i * factorx + factorx / 2, jj = j * factory, kk = k * factorz; in DMStagRestrictSimple_3d() 125 const PetscInt ii = i * factorx, jj = j * factory + factory / 2, kk = k * factorz; in DMStagRestrictSimple_3d() 135 const PetscInt ii = i * factorx, jj = j * factory, kk = k * factorz + factorz / 2; in DMStagRestrictSimple_3d() 137 …if (factorz % 2 == 0) arrc[k][j][i][idownleftc + d] = 0.5 * (arrf[kk - 1][jj][ii][idownleftf + d] … in DMStagRestrictSimple_3d() 145 … const PetscInt ii = i * factorx + factorx / 2, jj = j * factory + factory / 2, kk = k * factorz; in DMStagRestrictSimple_3d() 157 … const PetscInt ii = i * factorx + factorx / 2, jj = j * factory, kk = k * factorz + factorz / 2; 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() [all …]
|