Lines Matching refs:xmax

34 static inline PetscReal RangeMod(PetscReal a, PetscReal xmin, PetscReal xmax)  in RangeMod()  argument
36 PetscReal range = xmax - xmin; in RangeMod()
46 …tscScalar *uR, PetscScalar *flux, PetscReal *maxspeed, PetscReal x, PetscReal xmin, PetscReal xmax) in PhysicsRiemann_Advect() argument
53 if (x == 0 || x == xmin || x == xmax) in PhysicsRiemann_Advect()
73 …(void *vctx, PetscInt initial, FVBCType bctype, PetscReal xmin, PetscReal xmax, PetscReal t, Petsc… in PhysicsSample_Advect() argument
85 x0 = RangeMod(x - a[0] * t, xmin, xmax); in PhysicsSample_Advect()
124 x0 = RangeMod(x - a[1] * t, xmin, xmax); in PhysicsSample_Advect()
200 hx = (ctx->xmax - ctx->xmin) / Mx; in FVRHSFunctionslow()
260 …)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xmax)); in FVRHSFunctionslow()
276 …)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xmax)); in FVRHSFunctionslow()
305 hx = (ctx->xmax - ctx->xmin) / Mx; in FVRHSFunctionfast()
363 …)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xmax)); in FVRHSFunctionfast()
379 …)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xmax)); in FVRHSFunctionfast()
406 hx = (ctx->xmax - ctx->xmin) / Mx; in FVRHSFunctionslow2()
464 …)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xmax)); in FVRHSFunctionslow2()
480 …)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xmax)); in FVRHSFunctionslow2()
493 …)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xmax)); in FVRHSFunctionslow2()
521 hx = (ctx->xmax - ctx->xmin) / Mx; in FVRHSFunctionfast2()
580 …)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xmax)); in FVRHSFunctionfast2()
596 …)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xmax)); in FVRHSFunctionfast2()
655 ctx.xmax = 1.0; in main()
658 PetscCall(PetscOptionsReal("-xmax", "X max", "", ctx.xmax, &ctx.xmax, NULL)); in main()
693 …DMDASetUniformCoordinates(da, ctx.xmin + 0.5 * (ctx.xmax - ctx.xmin) / Mx, ctx.xmax + 0.5 * (ctx.x… in main()
708 …if (ctx.xmin + i * (ctx.xmax - ctx.xmin) / (PetscReal)Mx + 0.5 * (ctx.xmax - ctx.xmin) / (PetscRea… in main()
730 …PetscReal coord = ctx.xmin + i * (ctx.xmax - ctx.xmin) / (PetscReal)Mx + 0.5 * (ctx.xmax - ctx.xmi… in main()
731 if (coord >= 0 && coord < ctx.xmin + (ctx.xmax - ctx.xmin) * 3 / 4.) in main()
733 if (coord >= ctx.xmin + (ctx.xmax - ctx.xmin) * 3 / 4.) in main()
771 mass_difference = (ctx.xmax - ctx.xmin) / (PetscScalar)Mx * (mass_final - mass_initial); in main()