Lines Matching refs:Mx

172   PetscInt     i, j, Mx, dof, xs, xm, sf = ctx->sf, fs = ctx->fs;  in FVRHSFunction()  local
181 …PetscCall(DMDAGetInfo(da, 0, &Mx, 0, 0, 0, 0, 0, &dof, 0, 0, 0, 0, 0)); /* Mx is the number of cen… in FVRHSFunction()
182 hs = (ctx->xmax - ctx->xmin) / 2.0 * (ctx->hratio + 1.0) / Mx; in FVRHSFunction()
183 hf = (ctx->xmax - ctx->xmin) / 2.0 * (1.0 + 1.0 / ctx->hratio) / Mx; in FVRHSFunction()
196 for (i = Mx; i < xs + xm + 2; i++) { in FVRHSFunction()
321 PetscInt i, j, Mx, dof, xs, xm, islow = 0, sf = ctx->sf, fs = ctx->fs; in FVRHSFunctionslow() local
330 …PetscCall(DMDAGetInfo(da, 0, &Mx, 0, 0, 0, 0, 0, &dof, 0, 0, 0, 0, 0)); /* Mx is the number of cen… in FVRHSFunctionslow()
331 hs = (ctx->xmax - ctx->xmin) / 2.0 * (ctx->hratio + 1.0) / Mx; in FVRHSFunctionslow()
332 hf = (ctx->xmax - ctx->xmin) / 2.0 * (1.0 + 1.0 / ctx->hratio) / Mx; in FVRHSFunctionslow()
345 for (i = Mx; i < xs + xm + 2; i++) { in FVRHSFunctionslow()
443 PetscInt i, j, Mx, dof, xs, xm, ifast = 0, sf = ctx->sf, fs = ctx->fs; in FVRHSFunctionfast() local
452 …PetscCall(DMDAGetInfo(da, 0, &Mx, 0, 0, 0, 0, 0, &dof, 0, 0, 0, 0, 0)); /* Mx is the number of cen… in FVRHSFunctionfast()
453 hs = (ctx->xmax - ctx->xmin) / 2.0 * (ctx->hratio + 1.0) / Mx; in FVRHSFunctionfast()
454 hf = (ctx->xmax - ctx->xmin) / 2.0 * (1.0 + 1.0 / ctx->hratio) / Mx; in FVRHSFunctionfast()
467 for (i = Mx; i < xs + xm + 2; i++) { in FVRHSFunctionfast()
550 PetscInt i, j, k, dof, xs, xm, Mx, count_slow, count_fast; in FVSample() local
555 PetscCall(DMDAGetInfo(da, 0, &Mx, 0, 0, 0, 0, 0, &dof, 0, 0, 0, 0, 0)); in FVSample()
559 const PetscReal hs = (ctx->xmax - ctx->xmin) / 2.0 * (ctx->hratio + 1.0) / Mx; in FVSample()
560 const PetscReal hf = (ctx->xmax - ctx->xmin) / 2.0 * (1.0 + 1.0 / ctx->hratio) / Mx; in FVSample()
561 count_slow = Mx / (1 + ctx->hratio); in FVSample()
562 count_fast = Mx - count_slow; in FVSample()
603 PetscInt imin, imax, Mx, i, j, xs, xm, dof; in SolutionStatsView() local
616 PetscCall(DMDAGetInfo(da, 0, &Mx, 0, 0, 0, 0, 0, &dof, 0, 0, 0, 0, 0)); in SolutionStatsView()
628 … %g, ||x||_TV %g\n", (double)xmin, (double)xmax, imin, (double)(sum / Mx), (double)(tvgsum / Mx))); in SolutionStatsView()
635 PetscInt i, Mx, count_slow = 0, count_fast = 0; in SolutionErrorNorms() local
639 PetscCall(VecGetSize(X, &Mx)); in SolutionErrorNorms()
642 const PetscReal hs = (ctx->xmax - ctx->xmin) / 2.0 * (ctx->hratio + 1.0) / Mx; in SolutionErrorNorms()
643 const PetscReal hf = (ctx->xmax - ctx->xmin) / 2.0 * (1.0 + 1.0 / ctx->hratio) / Mx; in SolutionErrorNorms()
644 count_slow = (PetscReal)Mx / (1.0 + ctx->hratio); in SolutionErrorNorms()
645 count_fast = Mx - count_slow; in SolutionErrorNorms()
648 for (i = 0; i < Mx; i++) { in SolutionErrorNorms()
667 …PetscInt i, k, dof, xs, xm, Mx, draw = 0, count_slow, count_fast, islow = 0, ifast = 0, *… in main() local
713 PetscCall(DMDAGetInfo(da, 0, &Mx, 0, 0, 0, 0, 0, &dof, 0, 0, 0, 0, 0)); in main()
717 …dinates(da, ctx.xmin + 0.5 * (ctx.xmax - ctx.xmin) / Mx, ctx.xmax + 0.5 * (ctx.xmax - ctx.xmin) / in main()
728 count_slow = Mx / (1 + ctx.hratio); in main()
730 count_fast = Mx - count_slow; in main()
817 for (i = 0; i < Mx; i++) { in main()