| /petsc/src/ts/tutorials/multirate/ |
| H A D | finitevolume1d.h | 68 … PetscScalar *jL, const PetscScalar *jR, const PetscInt sm, const PetscInt mf, const PetscInt fm, … 69 … PetscScalar *jL, const PetscScalar *jR, const PetscInt sm, const PetscInt mf, const PetscInt fm, … 70 … PetscScalar *jL, const PetscScalar *jR, const PetscInt sm, const PetscInt mf, const PetscInt fm, … 71 … PetscScalar *jL, const PetscScalar *jR, const PetscInt sm, const PetscInt mf, const PetscInt fm, … 72 … PetscScalar *jL, const PetscScalar *jR, const PetscInt sm, const PetscInt mf, const PetscInt fm, … 73 … PetscScalar *jL, const PetscScalar *jR, const PetscInt sm, const PetscInt mf, const PetscInt fm, … 74 … PetscScalar *jL, const PetscScalar *jR, const PetscInt sm, const PetscInt mf, const PetscInt fm, … 75 … PetscScalar *jL, const PetscScalar *jR, const PetscInt sm, const PetscInt mf, const PetscInt fm, … 129 …PetscInt sm, mf, fm, ms; /* positions (array index) for slow-medium, medium-fast, fast-medi… member
|
| H A D | ex8.c | 138 hm = (ctx->xmax - ctx->xmin) / 4.0 / (ctx->mf - ctx->sm); in FVSample_3WaySplit() 139 hf = (ctx->xmax - ctx->xmin) / 4.0 / (ctx->fm - ctx->mf); in FVSample_3WaySplit() 150 } else if (i < ctx->mf) { in FVSample_3WaySplit() 160 xi = ctx->xmin + ctx->sm * hs + (ctx->mf - ctx->sm) * hm + 0.5 * hf + (i - ctx->mf) * hf; in FVSample_3WaySplit() 169 …xi = ctx->xmin + ctx->sm * hs + (ctx->mf - ctx->sm) * hm + (ctx->fm - ctx->mf) * hf + 0.5 * hm + (… in FVSample_3WaySplit() 178 …xi = ctx->xmin + ctx->sm * hs + (ctx->mf - ctx->sm) * hm + (ctx->fm - ctx->mf) * hf + (ctx->ms - c… in FVSample_3WaySplit() 203 hm = (ctx->xmax - ctx->xmin) / 4.0 / (ctx->mf - ctx->sm); in SolutionErrorNorms_3WaySplit() 204 hf = (ctx->xmax - ctx->xmin) / 4.0 / (ctx->fm - ctx->mf); in SolutionErrorNorms_3WaySplit() 211 else if (i < ctx->mf || i > ctx->fm - 1) *nrm1 += hm * PetscAbs(ptr_X[i] - ptr_Y[i]); in SolutionErrorNorms_3WaySplit() 223 PetscInt i, j, k, Mx, dof, xs, xm, sm = ctx->sm, mf = ctx->mf, fm = ctx->fm, ms = ctx->ms; in FVRHSFunction_3WaySplit() local [all …]
|
| H A D | finitevolume1d.c | 283 … PetscScalar *jL, const PetscScalar *jR, const PetscInt sm, const PetscInt mf, const PetscInt fm, … in Limit3_Upwind() argument 288 … PetscScalar *jL, const PetscScalar *jR, const PetscInt sm, const PetscInt mf, const PetscInt fm, … in Limit3_LaxWendroff() argument 295 } else if (n < mf - 1 || n > fm) { /* medium components */ in Limit3_LaxWendroff() 297 } else if (n == mf - 1 || n == fm) { /* medium component next to fast components */ in Limit3_LaxWendroff() 303 … PetscScalar *jL, const PetscScalar *jR, const PetscInt sm, const PetscInt mf, const PetscInt fm, … in Limit3_BeamWarming() argument 310 } else if (n < mf || n > fm) { in Limit3_BeamWarming() 312 } else if (n == mf || n == fm) { in Limit3_BeamWarming() 318 … PetscScalar *jL, const PetscScalar *jR, const PetscInt sm, const PetscInt mf, const PetscInt fm, … in Limit3_Fromm() argument 331 } else if (n < mf - 1 || n > fm) { in Limit3_Fromm() 333 } else if (n == mf - 1) { in Limit3_Fromm() [all …]
|
| /petsc/src/snes/mf/ |
| H A D | snesmfj.c | 266 MatMFFD mf; in MatCreateSNESMF() local 280 PetscCall(MatShellGetContext(*J, &mf)); in MatCreateSNESMF() 281 mf->ctx = snes; in MatCreateSNESMF()
|
| /petsc/src/ts/tutorials/advection-diffusion-reaction/ |
| H A D | ex1.c | 180 PetscBool mf = PETSC_FALSE; in main() local 190 PetscCall(PetscOptionsGetBool(NULL, NULL, "-snes_mf_operator", &mf, NULL)); in main() 222 if (!mf) PetscCall(TSSetIJacobian(ts, A, A, (TSIJacobianFn *)IJacobian, &ctx)); in main()
|
| H A D | ex5adj_mf.c | 247 PetscBool forwardonly = PETSC_FALSE, implicitform = PETSC_TRUE, mf = PETSC_FALSE; in main() local 257 PetscCall(PetscOptionsGetBool(NULL, NULL, "-mf", &mf, NULL)); in main() 309 if (mf) { in main() 378 if (mf) { in main()
|
| /petsc/src/binding/petsc4py/demo/legacy/bratu3d/ |
| H A D | makefile | 21 ${MPIEXEC} ${PYTHON} bratu3d.py -mf -nx 9 -ny 8 -nz 7
|
| H A D | bratu3d.py | 159 mf = OptDB.getBool('mf', False) variable 160 if mf:
|
| /petsc/src/dm/impls/stag/ |
| H A D | stagmulti.c | 451 PetscInt xf, mf, nExtraxf, i, d, count; in DMStagPopulateInterpolation1d_Internal() local 467 PetscCall(DMStagGetCorners(dmf, &xf, NULL, NULL, &mf, NULL, NULL, &nExtraxf, NULL, NULL)); in DMStagPopulateInterpolation1d_Internal() 471 for (i = xf; i < xf + mf + nExtraxf; ++i) { in DMStagPopulateInterpolation1d_Internal() 492 for (i = xf; i < xf + mf; ++i) { in DMStagPopulateInterpolation1d_Internal() 510 PetscInt xf, yf, mf, nf, nExtraxf, nExtrayf, i, j, d, count; in DMStagPopulateInterpolation2d_Internal() local 527 PetscCall(DMStagGetCorners(dmf, &xf, &yf, NULL, &mf, &nf, NULL, &nExtraxf, &nExtrayf, NULL)); in DMStagPopulateInterpolation2d_Internal() 532 for (i = xf; i < xf + mf + nExtraxf; ++i) { in DMStagPopulateInterpolation2d_Internal() 559 for (i = xf; i < xf + mf + nExtraxf; ++i) { in DMStagPopulateInterpolation2d_Internal() 593 for (i = xf; i < xf + mf; ++i) { in DMStagPopulateInterpolation2d_Internal() 627 for (i = xf; i < xf + mf; ++i) { in DMStagPopulateInterpolation2d_Internal() [all …]
|
| /petsc/src/mat/impls/shell/ |
| H A D | shell.c | 2043 Mat mf, Dmf, Dmat, Ddiff; in MatShellTestMult() local 2051 …PetscCall(MatCreateMFFD(PetscObjectComm((PetscObject)mat), m, n, PETSC_DECIDE, PETSC_DECIDE, &mf)); in MatShellTestMult() 2052 PetscCall(MatMFFDSetFunction(mf, f, ctx)); in MatShellTestMult() 2053 PetscCall(MatMFFDSetBase(mf, base, NULL)); in MatShellTestMult() 2055 PetscCall(MatComputeOperator(mf, MATAIJ, &Dmf)); in MatShellTestMult() 2075 PetscCall(MatDestroy(&mf)); in MatShellTestMult() 2106 Mat mf, Dmf, Dmat, Ddiff; in MatShellTestMultTranspose() local 2117 PetscCall(MatCreateMFFD(PetscObjectComm((PetscObject)mat), m, n, M, N, &mf)); in MatShellTestMultTranspose() 2118 PetscCall(MatMFFDSetFunction(mf, f, ctx)); in MatShellTestMultTranspose() 2119 PetscCall(MatMFFDSetBase(mf, base, NULL)); in MatShellTestMultTranspose() [all …]
|
| /petsc/src/snes/interface/ |
| H A D | snes.c | 469 } else if (snes->mf && !snes->mf_operator) { in SNESView() 767 if (!snes->jacobian && snes->mf && !snes->mf_operator && !snes->jacobian_pre) { in SNESSetUpMatrices() 1120 snes->mf = PETSC_TRUE; in SNESSetFromOptions() 1123 …o matrix for computing the preconditioner", "SNESSetUseMatrixFree", PETSC_FALSE, &snes->mf, &flg)); in SNESSetFromOptions() 1124 if (!flg && snes->mf_operator) snes->mf = PETSC_TRUE; in SNESSetFromOptions() 1328 PetscErrorCode SNESSetUseMatrixFree(SNES snes, PetscBool mf_operator, PetscBool mf) in SNESSetUseMatrixFree() argument 1333 PetscValidLogicalCollectiveBool(snes, mf, 3); in SNESSetUseMatrixFree() 1334 snes->mf = mf_operator ? PETSC_TRUE : mf; in SNESSetUseMatrixFree() 1355 PetscErrorCode SNESGetUseMatrixFree(SNES snes, PetscBool *mf_operator, PetscBool *mf) in SNESGetUseMatrixFree() argument 1359 if (mf) *mf = snes->mf; in SNESGetUseMatrixFree() [all …]
|
| /petsc/src/ts/tutorials/ |
| H A D | ex20opt_ic.c | 396 PetscBool monitor = PETSC_FALSE, mf = PETSC_TRUE; in main() local 425 …PetscCall(PetscOptionsGetBool(NULL, NULL, "-my_tao_mf", &mf, NULL)); /* matrix-free hessian for op… in main() 512 if (mf) { in main()
|
| /petsc/src/ts/tutorials/optimal_control/ |
| H A D | ex1.c | 15 PetscBool mf, eh; member 252 PetscCall(PetscOptionsHasName(NULL, NULL, "-matrixfree", &aircraft.mf)); in main() 361 if (aircraft.mf) { in main()
|
| /petsc/src/dm/impls/da/ |
| H A D | dainterp.c | 1009 PetscInt dimc, Mc, Nc, Pc, mc, nc, pc, dofc, sc, dimf, Mf, Nf, Pf, mf, nf, pf, doff, sf; in DMCreateInterpolation_DA() local 1021 …PetscCall(DMDAGetInfo(daf, &dimf, &Mf, &Nf, &Pf, &mf, &nf, &pf, &doff, &sf, &bxf, &byf, &bzf, &stf… in DMCreateInterpolation_DA() 1266 PetscInt dimc, Mc, Nc, Pc, mc, nc, pc, dofc, sc, dimf, Mf, Nf, Pf, mf, nf, pf, doff, sf; in DMCreateInjection_DA() local 1277 …PetscCall(DMDAGetInfo(daf, &dimf, &Mf, &Nf, &Pf, &mf, &nf, &pf, &doff, &sf, &bxf, &byf, &bzf, &stf… in DMCreateInjection_DA() 1335 PetscInt dimf, Mf, Nf, Pf, mf, nf, pf, doff, sf; in DMDACreateAggregates() local 1360 …PetscCall(DMDAGetInfo(daf, &dimf, &Mf, &Nf, &Pf, &mf, &nf, &pf, &doff, &sf, &bxf, &byf, &bzf, &stf… in DMDACreateAggregates()
|
| /petsc/include/petsc/private/ |
| H A D | snesimpl.h | 167 PetscBool mf; /* -snes_mf OR -snes_mf_operator was used on this snes */ member
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | testcase3D.cas | 256 (perforated/mf-urf 1) 873 (soot/fuel-mf (1.)) 2942 (melt/solute-ref-mf ()) 2943 (melt/use-solute-ref-mf? #f) 3320 (prepdf/mf-method 0) 3764 (nist-table/num-bi-mf-pts 12) 4829 (species/kinetics/cons-noneg-mf 1) 4831 (species/kinetics/min-surf-mf -0.0001) 4832 (species/kinetics/max-surf-mf 1.1) 4833 (species/kinetics/min-gas-mf -1e-12) [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexfem.c | 2002 PetscErrorCode DMPlexComputeL2FluxDiffVecLocal(Vec lu, PetscInt f, Vec lmu, PetscInt mf, Vec eFlux) in DMPlexComputeL2FluxDiffVecLocal() argument 2028 PetscCall(DMGetField(mdm, mf, NULL, (PetscObject *)&mfe)); in DMPlexComputeL2FluxDiffVecLocal() 2104 PetscErrorCode DMPlexComputeL2FluxDiffVec(Vec u, PetscInt f, Vec mu, PetscInt mf, Vec eFlux) in DMPlexComputeL2FluxDiffVec() argument 2120 PetscCall(DMPlexComputeL2FluxDiffVecLocal(lu, f, lmu, mf, eFlux)); in DMPlexComputeL2FluxDiffVec()
|