| /petsc/src/dm/impls/stag/ |
| H A D | stagmulti.c | 509 PetscInt Mc, Nc, Mf, Nf, factorx, factory, dof[3]; in DMStagPopulateInterpolation2d_Internal() local 520 factory = Nf / Nc; in DMStagPopulateInterpolation2d_Internal() 539 colc[count].j = j / factory; in DMStagPopulateInterpolation2d_Internal() 547 PetscCall(SetInterpolationCoefficientVertex_Private(j, factory, &ay)); in DMStagPopulateInterpolation2d_Internal() 560 const PetscBool belowHalfy = (PetscBool)(2 * (j % factory) + 1 < factory); in DMStagPopulateInterpolation2d_Internal() 568 colc[count].j = j / factory; in DMStagPopulateInterpolation2d_Internal() 578 PetscCall(SetInterpolationCoefficientCenter_Private(belowHalfy, j, factory, &ay)); in DMStagPopulateInterpolation2d_Internal() 581 … if (j / factory == 0 && belowHalfy) PetscCall(MergeInterpolationWeightToTop2d_Private(weight)); in DMStagPopulateInterpolation2d_Internal() 582 …else if (j / factory == Nc - 1 && !belowHalfy) PetscCall(MergeInterpolationWeightToBottom2d_Privat… in DMStagPopulateInterpolation2d_Internal() 602 colc[count].j = j / factory; in DMStagPopulateInterpolation2d_Internal() [all …]
|
| H A D | stag2d.c | 59 PetscInt Mf, Nf, Mc, Nc, factorx, factory, dof[3]; in DMStagRestrictSimple_2d() local 69 factory = Nf / Nc; in DMStagRestrictSimple_2d() 88 const PetscInt ii = factorx * i, jj = factory * j; in DMStagRestrictSimple_2d() 96 const PetscInt ii = factorx * i, jj = factory * j + factory / 2; 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() 105 const PetscInt ii = factorx * i + factorx / 2, jj = factory * j; in DMStagRestrictSimple_2d() 114 const PetscInt ii = factorx * i + factorx / 2, jj = factory * j + factory / 2; in DMStagRestrictSimple_2d() 116 …if (factorx % 2 == 0 && factory % 2 == 0) arrc[j][i][ielemc + d] = 0.25 * (arrf[jj - 1][ii - 1][ie… in DMStagRestrictSimple_2d() 118 …else if (factory % 2 == 0) arrc[j][i][ielemc + d] = 0.5 * (arrf[jj - 1][ii - 1][ielemf + d] + arrf… in DMStagRestrictSimple_2d()
|
| H A D | stag3d.c | 66 PetscInt Mf, Nf, Pf, Mc, Nc, Pc, factorx, factory, factorz, dof[4]; in DMStagRestrictSimple_3d() local 77 factory = Nf / Nc; 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() 127 …if (factory % 2 == 0) arrc[k][j][i][ibackleftc + d] = 0.5 * (arrf[kk][jj - 1][ii][ibackleftf + d] … in DMStagRestrictSimple_3d() 135 const PetscInt ii = i * factorx, jj = j * factory, kk = k * factorz + factorz / 2; in DMStagRestrictSimple_3d() 145 … const PetscInt ii = i * factorx + factorx / 2, jj = j * factory + factory / 2, kk = k * factorz; in DMStagRestrictSimple_3d() 147 …if (factorx % 2 == 0 && factory % 2 == 0) arrc[k][j][i][ibackc + d] = 0.25 * (arrf[kk][jj - 1][ii … in DMStagRestrictSimple_3d() 149 …else if (factory % 2 == 0) arrc[k][j][i][ibackc + d] = 0.5 * (arrf[kk][jj - 1][ii][ibackf + d] + a… in DMStagRestrictSimple_3d() [all …]
|
| /petsc/src/ksp/ksp/tutorials/amrex/ |
| H A D | MyTest.cxx | 28 const MultiFab &vfrc = factory[ilev]->getVolFrac(); in solve() 29 MultiFab v(vfrc.boxArray(), vfrc.DistributionMap(), 1, 0, MFInfo(), *factory[ilev]); in solve() 50 MLEBABecLap mleb(geom, grids, dmap, info, amrex::GetVecOfConstPtrs(factory)); in solve() 86 const MultiFab &vfrc = factory[ilev]->getVolFrac(); in writePlotfile() 161 factory.resize(nlevels); in initData() 172 …factory[ilev].reset(new EBFArrayBoxFactory(eb_level, geom[ilev], grids[ilev], dmap[ilev], {2, 2, 2… in initData() 174 phi[ilev].define(grids[ilev], dmap[ilev], 1, 1, MFInfo(), *factory[ilev]); in initData() 175 rhs[ilev].define(grids[ilev], dmap[ilev], 1, 0, MFInfo(), *factory[ilev]); in initData() 176 acoef[ilev].define(grids[ilev], dmap[ilev], 1, 0, MFInfo(), *factory[ilev]); in initData() 177 …nvert(grids[ilev], IntVect::TheDimensionVector(idim)), dmap[ilev], 1, 0, MFInfo(), *factory[ilev]); in initData() [all …]
|
| H A D | MyTest.H | 49 amrex::Vector<std::unique_ptr<amrex::EBFArrayBoxFactory> > factory; variable
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_pc_py.py | 143 factory = 'PC_PYTHON_CLASS'
|