Lines Matching refs:xs
86 PetscInt its, N = 5, i, maxit, maxf, xs, xm; in main() local
239 PetscCall(DMDAGetCorners(ctx.da, &xs, NULL, NULL, &xm, NULL, NULL)); in main()
250 xp = ctx.h * xs; in main()
251 for (i = xs; i < xs + xm; i++) { in main()
353 PetscInt i, M, xs, xm; in FormFunction() local
381 PetscCall(DMDAGetCorners(da, &xs, NULL, NULL, &xm, NULL, NULL)); in FormFunction()
389 if (xs == 0) { /* left boundary */ in FormFunction()
391 xs++; in FormFunction()
394 if (xs + xm == M) { /* right boundary */ in FormFunction()
395 ff[xs + xm - 1] = xx[xs + xm - 1] - 1.0; in FormFunction()
403 …for (i = xs; i < xs + xm; i++) ff[i] = d * (xx[i - 1] - 2.0 * xx[i] + xx[i + 1]) + xx[i] * xx[i] -… in FormFunction()
433 PetscInt i, j[3], M, xs, xm; in FormJacobian() local
445 PetscCall(DMDAGetCorners(da, &xs, NULL, NULL, &xm, NULL, NULL)); in FormJacobian()
457 if (xs == 0) { /* left boundary */ in FormJacobian()
462 xs++; in FormJacobian()
465 if (xs + xm == M) { /* right boundary */ in FormJacobian()
478 for (i = xs; i < xs + xm; i++) { in FormJacobian()
571 PetscInt i, iter, xs, xm; in PostCheck() local
596 PetscCall(DMDAGetCorners(da, &xs, NULL, NULL, &xm, NULL, NULL)); in PostCheck()
604 for (i = xs; i < xs + xm; i++) { in PostCheck()