Lines Matching refs:xm
126 PetscInt i, j, k, dof, xs, xm, Mx; in FVSample_3WaySplit() local
133 PetscCall(DMDAGetCorners(da, &xs, 0, 0, &xm, 0, 0)); in FVSample_3WaySplit()
140 for (i = xs; i < xs + xm; i++) { in FVSample_3WaySplit()
223 PetscInt i, j, k, Mx, dof, xs, xm, sm = ctx->sm, mf = ctx->mf, fm = ctx->fm, ms = ctx->ms; in FVRHSFunction_3WaySplit() local
245 PetscCall(DMDAGetCorners(da, &xs, 0, 0, &xm, 0, 0)); in FVRHSFunction_3WaySplit()
251 for (i = Mx; i < xs + xm + 2; i++) { in FVRHSFunction_3WaySplit()
252 for (j = 0; j < dof; j++) x[i * dof + j] = x[(xs + xm - 1) * dof + j]; in FVRHSFunction_3WaySplit()
255 for (i = xs - 1; i < xs + xm + 1; i++) { in FVRHSFunction_3WaySplit()
286 for (i = xs; i < xs + xm + 1; i++) { in FVRHSFunction_3WaySplit()
300 if (i < xs + xm) { in FVRHSFunction_3WaySplit()
312 if (i < xs + xm) { in FVRHSFunction_3WaySplit()
324 if (i < xs + xm) { in FVRHSFunction_3WaySplit()
336 if (i < xs + xm) { in FVRHSFunction_3WaySplit()
348 if (i < xs + xm) { in FVRHSFunction_3WaySplit()
360 if (i < xs + xm) { in FVRHSFunction_3WaySplit()
373 if (i < xs + xm) { in FVRHSFunction_3WaySplit()
397 …PetscInt i, j, k, Mx, dof, xs, xm, islow = 0, sm = ctx->sm, ms = ctx->ms, lsbwidth = ctx->lsbw… in FVRHSFunctionslow_3WaySplit() local
416 PetscCall(DMDAGetCorners(da, &xs, 0, 0, &xm, 0, 0)); in FVRHSFunctionslow_3WaySplit()
422 for (i = Mx; i < xs + xm + 2; i++) { in FVRHSFunctionslow_3WaySplit()
423 for (j = 0; j < dof; j++) x[i * dof + j] = x[(xs + xm - 1) * dof + j]; in FVRHSFunctionslow_3WaySplit()
426 for (i = xs - 1; i < xs + xm + 1; i++) { in FVRHSFunctionslow_3WaySplit()
459 for (i = xs; i < xs + xm + 1; i++) { in FVRHSFunctionslow_3WaySplit()
474 if (i < xs + xm) { in FVRHSFunctionslow_3WaySplit()
495 if (i < xs + xm) { in FVRHSFunctionslow_3WaySplit()
510 if (i < xs + xm) { in FVRHSFunctionslow_3WaySplit()
527 …PetscInt i, j, k, Mx, dof, xs, xm, islowbuffer = 0, sm = ctx->sm, ms = ctx->ms, lsbwidth = ctx… in FVRHSFunctionslowbuffer_3WaySplit() local
546 PetscCall(DMDAGetCorners(da, &xs, 0, 0, &xm, 0, 0)); in FVRHSFunctionslowbuffer_3WaySplit()
552 for (i = Mx; i < xs + xm + 2; i++) { in FVRHSFunctionslowbuffer_3WaySplit()
553 for (j = 0; j < dof; j++) x[i * dof + j] = x[(xs + xm - 1) * dof + j]; in FVRHSFunctionslowbuffer_3WaySplit()
556 for (i = xs - 1; i < xs + xm + 1; i++) { in FVRHSFunctionslowbuffer_3WaySplit()
589 for (i = xs; i < xs + xm + 1; i++) { in FVRHSFunctionslowbuffer_3WaySplit()
600 if (i < xs + xm) { in FVRHSFunctionslowbuffer_3WaySplit()
614 if (i < xs + xm) { in FVRHSFunctionslowbuffer_3WaySplit()
635 if (i < xs + xm) { in FVRHSFunctionslowbuffer_3WaySplit()
649 if (i < xs + xm) { in FVRHSFunctionslowbuffer_3WaySplit()
676 …PetscInt i, j, k, Mx, dof, xs, xm, imedium = 0, sm = ctx->sm, mf = ctx->mf, fm = ctx->fm, ms =… in FVRHSFunctionmedium_3WaySplit() local
695 PetscCall(DMDAGetCorners(da, &xs, 0, 0, &xm, 0, 0)); in FVRHSFunctionmedium_3WaySplit()
701 for (i = Mx; i < xs + xm + 2; i++) { in FVRHSFunctionmedium_3WaySplit()
702 for (j = 0; j < dof; j++) x[i * dof + j] = x[(xs + xm - 1) * dof + j]; in FVRHSFunctionmedium_3WaySplit()
705 for (i = xs - 1; i < xs + xm + 1; i++) { in FVRHSFunctionmedium_3WaySplit()
738 for (i = xs; i < xs + xm + 1; i++) { in FVRHSFunctionmedium_3WaySplit()
749 if (i < xs + xm) { in FVRHSFunctionmedium_3WaySplit()
763 if (i < xs + xm) { in FVRHSFunctionmedium_3WaySplit()
784 if (i < xs + xm) { in FVRHSFunctionmedium_3WaySplit()
798 if (i < xs + xm) { in FVRHSFunctionmedium_3WaySplit()
824 …PetscInt i, j, k, Mx, dof, xs, xm, imediumbuffer = 0, mf = ctx->mf, fm = ctx->fm, lmbwidth = c… in FVRHSFunctionmediumbuffer_3WaySplit() local
843 PetscCall(DMDAGetCorners(da, &xs, 0, 0, &xm, 0, 0)); in FVRHSFunctionmediumbuffer_3WaySplit()
849 for (i = Mx; i < xs + xm + 2; i++) { in FVRHSFunctionmediumbuffer_3WaySplit()
850 for (j = 0; j < dof; j++) x[i * dof + j] = x[(xs + xm - 1) * dof + j]; in FVRHSFunctionmediumbuffer_3WaySplit()
853 for (i = xs - 1; i < xs + xm + 1; i++) { in FVRHSFunctionmediumbuffer_3WaySplit()
886 for (i = xs; i < xs + xm + 1; i++) { in FVRHSFunctionmediumbuffer_3WaySplit()
897 if (i < xs + xm) { in FVRHSFunctionmediumbuffer_3WaySplit()
911 if (i < xs + xm) { in FVRHSFunctionmediumbuffer_3WaySplit()
932 if (i < xs + xm) { in FVRHSFunctionmediumbuffer_3WaySplit()
946 if (i < xs + xm) { in FVRHSFunctionmediumbuffer_3WaySplit()
973 PetscInt i, j, k, Mx, dof, xs, xm, ifast = 0, mf = ctx->mf, fm = ctx->fm; in FVRHSFunctionfast_3WaySplit() local
992 PetscCall(DMDAGetCorners(da, &xs, 0, 0, &xm, 0, 0)); in FVRHSFunctionfast_3WaySplit()
998 for (i = Mx; i < xs + xm + 2; i++) { in FVRHSFunctionfast_3WaySplit()
999 for (j = 0; j < dof; j++) x[i * dof + j] = x[(xs + xm - 1) * dof + j]; in FVRHSFunctionfast_3WaySplit()
1002 …for (i = xs - 1; i < xs + xm + 1; i++) { /* fast components and the last slow components before fa… in FVRHSFunctionfast_3WaySplit()
1033 for (i = xs; i < xs + xm + 1; i++) { in FVRHSFunctionfast_3WaySplit()
1044 if (i < xs + xm) { in FVRHSFunctionfast_3WaySplit()
1058 if (i < xs + xm) { in FVRHSFunctionfast_3WaySplit()
1090 …PetscInt i, k, dof, xs, xm, Mx, draw = 0, count_slow, count_medium, count_fast, islow = 0… in main() local
1152 PetscCall(DMDAGetCorners(da, &xs, 0, 0, &xm, 0, 0)); in main()
1176 PetscCall(PetscMalloc1(xm * dof, &index_slow)); in main()
1177 PetscCall(PetscMalloc1(xm * dof, &index_medium)); in main()
1178 PetscCall(PetscMalloc1(xm * dof, &index_fast)); in main()
1193 for (i = xs; i < xs + xm; i++) { in main()
1254 for (i = xs; i < xs + xm; i++) { in main()
1299 for (i = xs; i < xs + xm; i++) { in main()