Lines Matching refs:hs
128 PetscReal hs, hm, hf; in FVSample_3WaySplit() local
137 hs = (ctx->xmax - ctx->xmin) / 8.0 / ctx->sm; in FVSample_3WaySplit()
142 xi = ctx->xmin + 0.5 * hs + i * hs; in FVSample_3WaySplit()
146 xj = xi + hs * (j - N / 2) / (PetscReal)N; in FVSample_3WaySplit()
151 xi = ctx->xmin + ctx->sm * hs + 0.5 * hm + (i - ctx->sm) * hm; 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 …->xmin + ctx->sm * hs + (ctx->mf - ctx->sm) * hm + (ctx->fm - ctx->mf) * hf + (ctx->ms - ctx->fm) … in FVSample_3WaySplit()
182 xj = xi + hs * (j - N / 2) / (PetscReal)N; in FVSample_3WaySplit()
198 PetscReal hs, hm, hf; in SolutionErrorNorms_3WaySplit() local
202 hs = (ctx->xmax - ctx->xmin) / 8.0 / ctx->sm; in SolutionErrorNorms_3WaySplit()
210 if (i < ctx->sm || i > ctx->ms - 1) *nrm1 += hs * PetscAbs(ptr_X[i] - ptr_Y[i]); in SolutionErrorNorms_3WaySplit()
1242 const PetscReal hs = (ctx.xmax - ctx.xmin) / 4.0 / count_slow; in main() local
1257 mass_initial = mass_initial + hs * ptr_X0[i * dof + k]; in main()
1258 mass_final = mass_final + hs * ptr_X[i * dof + k]; in main()
1301 … for (k = 0; k < dof; k++) nrm1 = nrm1 + hs * PetscAbs(ptr_X[i * dof + k] - ptr_XR[i * dof + k]); in main()