Lines Matching refs:xmin

34 static inline PetscReal RangeMod(PetscReal a, PetscReal xmin, PetscReal xmax)  in RangeMod()  argument
36 PetscReal range = xmax - xmin; in RangeMod()
37 return xmin + PetscFmodReal(range + PetscFmodReal(a, range), range); 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 …icsSample_Advect(void *vctx, PetscInt initial, FVBCType bctype, PetscReal xmin, PetscReal xmax, Pe… 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()
223 …eristic)(ctx->physics.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds, ctx->xmin + hx * i)); in FVRHSFunctionslow()
260 …ann)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xma… in FVRHSFunctionslow()
276 …ann)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xma… in FVRHSFunctionslow()
305 hx = (ctx->xmax - ctx->xmin) / Mx; in FVRHSFunctionfast()
327 …eristic)(ctx->physics.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds, ctx->xmin + hx * i)); in FVRHSFunctionfast()
363 …ann)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xma… in FVRHSFunctionfast()
379 …ann)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xma… in FVRHSFunctionfast()
406 hx = (ctx->xmax - ctx->xmin) / Mx; in FVRHSFunctionslow2()
428 …eristic)(ctx->physics.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds, ctx->xmin + hx * i)); in FVRHSFunctionslow2()
464 …ann)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xma… in FVRHSFunctionslow2()
480 …ann)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xma… in FVRHSFunctionslow2()
493 …ann)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xma… in FVRHSFunctionslow2()
521 hx = (ctx->xmax - ctx->xmin) / Mx; in FVRHSFunctionfast2()
544 …eristic)(ctx->physics.user, dof, &x[i * dof], ctx->R, ctx->Rinv, ctx->speeds, ctx->xmin + hx * i)); in FVRHSFunctionfast2()
580 …ann)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xma… in FVRHSFunctionfast2()
596 …ann)(ctx->physics.user, dof, uL, uR, ctx->flux, &maxspeed, ctx->xmin + hx * i, ctx->xmin, ctx->xma… in FVRHSFunctionfast2()
654 ctx.xmin = -1.0; in main()
657 PetscCall(PetscOptionsReal("-xmin", "X min", "", ctx.xmin, &ctx.xmin, NULL)); in main()
693 …ll(DMDASetUniformCoordinates(da, ctx.xmin + 0.5 * (ctx.xmax - ctx.xmin) / Mx, ctx.xmax + 0.5 * (ct… 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()