Lines Matching refs:xmax
29 static inline PetscReal RangeMod(PetscReal a, PetscReal xmin, PetscReal xmax) in RangeMod() argument
31 PetscReal range = xmax - xmin; in RangeMod()
64 PetscReal xmin, xmax; member
99 …(void *vctx, PetscInt initial, FVBCType bctype, PetscReal xmin, PetscReal xmax, PetscReal t, Petsc… in PhysicsSample_Advect() argument
110 x0 = RangeMod(x - a * t, xmin, xmax); in PhysicsSample_Advect()
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()
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()
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()
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()
564 if (i * hs + 0.5 * hs < (ctx->xmax - ctx->xmin) * 0.25) { in FVSample()
570 …physics.sample)(ctx->physics.user, ctx->initial, ctx->bctype, ctx->xmin, ctx->xmax, time, xj, uj)); in FVSample()
573 …} else if ((ctx->xmax - ctx->xmin) * 0.25 + (i - count_slow / 2) * hf + 0.5 * hf < (ctx->xmax - ct… in FVSample()
574 xi = ctx->xmin + (ctx->xmax - ctx->xmin) * 0.25 + 0.5 * hf + (i - count_slow / 2) * hf; in FVSample()
579 …physics.sample)(ctx->physics.user, ctx->initial, ctx->bctype, ctx->xmin, ctx->xmax, time, xj, uj)); in FVSample()
583 …xi = ctx->xmin + (ctx->xmax - ctx->xmin) * 0.75 + 0.5 * hs + (i - count_slow / 2 - count_fast) * h… in FVSample()
588 …physics.sample)(ctx->physics.user, ctx->initial, ctx->bctype, ctx->xmin, ctx->xmax, time, xj, uj)); in FVSample()
600 PetscReal xmin, xmax; in SolutionStatsView() local
626 PetscCall(VecMax(X, &imax, &xmax)); in SolutionStatsView()
628 …imum at %" PetscInt_FMT ", mean %g, ||x||_TV %g\n", (double)xmin, (double)xmax, imin, (double)(sum… in SolutionStatsView()
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()
683 ctx.xmax = 1.0; in main()
686 PetscCall(PetscOptionsReal("-xmax", "X max", "", ctx.xmax, &ctx.xmax, NULL)); in main()
717 …DMDASetUniformCoordinates(da, ctx.xmin + 0.5 * (ctx.xmax - ctx.xmin) / Mx, ctx.xmax + 0.5 * (ctx.x… in main()
768 const PetscReal hs = (ctx.xmax - ctx.xmin) / 2.0 / count_slow; in main()
769 const PetscReal hf = (ctx.xmax - ctx.xmin) / 2.0 / count_fast; in main()