Home
last modified time | relevance | path

Searched refs:count_slow (Results 1 – 4 of 4) sorted by relevance

/petsc/src/ts/tutorials/multirate/
H A Dex7.c550 PetscInt i, j, k, dof, xs, xm, Mx, count_slow, count_fast; in FVSample() local
561 count_slow = Mx / (1 + ctx->hratio); in FVSample()
562 count_fast = Mx - count_slow; 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()
583 …xi = ctx->xmin + (ctx->xmax - ctx->xmin) * 0.75 + 0.5 * hs + (i - count_slow / 2 - count_fast) * h… in FVSample()
635 PetscInt i, Mx, count_slow = 0, count_fast = 0; in SolutionErrorNorms() local
644 count_slow = (PetscReal)Mx / (1.0 + ctx->hratio); in SolutionErrorNorms()
645 count_fast = Mx - count_slow; in SolutionErrorNorms()
649 …if (i < count_slow / 2 || i > count_slow / 2 + count_fast - 1) *nrm1 += hs * PetscAbs(ptr_X[i] - p… in SolutionErrorNorms()
[all …]
H A Dex6.c748 …PetscInt i, k, dof, xs, xm, Mx, draw = 0, count_slow, count_fast, islow = 0, ifast = 0, i… in main() local
826 count_slow = Mx / (1.0 + ctx.hratio / 3.0); in main()
827 …PetscCheck(count_slow % 2 == 0, PETSC_COMM_WORLD, PETSC_ERR_USER, "Please adjust grid size Mx (-da… in main()
828 count_fast = Mx - count_slow; in main()
829 ctx.sf = count_slow / 2; in main()
880 const PetscReal hs = (ctx.xmax - ctx.xmin) * 3.0 / 4.0 / count_slow; in main()
H A Dex8.c1090 …PetscInt i, k, dof, xs, xm, Mx, draw = 0, count_slow, count_medium, count_fast, islow = 0… in main() local
1168 count_slow = Mx / (1 + ctx.hratio) / (1 + ctx.hratio); in main()
1169 count_medium = 2 * ctx.hratio * count_slow; in main()
1170 …PetscCheck((count_slow % 2) == 0 && (count_medium % 2) == 0, PETSC_COMM_WORLD, PETSC_ERR_USER, "Pl… in main()
1171 count_fast = ctx.hratio * ctx.hratio * count_slow; in main()
1172 ctx.sm = count_slow / 2; in main()
1242 const PetscReal hs = (ctx.xmax - ctx.xmin) / 4.0 / count_slow; in main()
H A Dex4.c1189 …PetscInt i, k, dof, xs, xm, Mx, draw = 0, count_slow, count_fast, islow = 0, ifast = 0, i… in main() local
1274 count_slow = Mx * 3 / (3 + ctx.hratio); // compute Mx / (1.0 + ctx.hratio / 3.0); in main()
1275 …PetscCheck(count_slow % 2 == 0, PETSC_COMM_WORLD, PETSC_ERR_USER, "Please adjust grid size Mx (-da… in main()
1276 count_fast = Mx - count_slow; in main()
1277 ctx.sf = count_slow / 2; in main()
1323 const PetscReal hs = (ctx.xmax - ctx.xmin) * 3.0 / 4.0 / count_slow; in main()