Lines Matching refs:xn
298 PetscInt i, xs, xn; in InitialConditions() local
303 PetscCall(DMDAGetCorners(appctx->da, &xs, NULL, NULL, &xn, NULL, NULL)); in InitialConditions()
304 …for (i = xs; i < xs + xn; i++) s[i] = 2.0 * appctx->param.mu * PETSC_PI * PetscSinScalar(PETSC_PI … in InitialConditions()
326 PetscInt i, xs, xn; in TrueSolution() local
331 PetscCall(DMDAGetCorners(appctx->da, &xs, NULL, NULL, &xn, NULL, NULL)); in TrueSolution()
332 …for (i = xs; i < xs + xn; i++) s[i] = 2.0 * appctx->param.mu * PETSC_PI * PetscSinScalar(PETSC_PI … in TrueSolution()
351 PetscInt i, xs, xn; in ComputeObjective() local
356 PetscCall(DMDAGetCorners(appctx->da, &xs, NULL, NULL, &xn, NULL, NULL)); in ComputeObjective()
357 for (i = xs; i < xs + xn; i++) { in ComputeObjective()
430 PetscInt i, xs, xn, l, j; in RHSMatrixLaplaciangllDM() local
448 PetscCall(DMDAGetCorners(appctx->da, &xs, NULL, NULL, &xn, NULL, NULL)); in RHSMatrixLaplaciangllDM()
451 xn = xn / (appctx->param.N - 1); in RHSMatrixLaplaciangllDM()
457 for (j = xs; j < xs + xn; j++) { in RHSMatrixLaplaciangllDM()
491 PetscInt xs, xn, l, j; in RHSMatrixAdvectiongllDM() local
501 PetscCall(DMDAGetCorners(appctx->da, &xs, NULL, NULL, &xn, NULL, NULL)); in RHSMatrixAdvectiongllDM()
504 xn = xn / (appctx->param.N - 1); in RHSMatrixAdvectiongllDM()
507 for (j = xs; j < xs + xn; j++) { in RHSMatrixAdvectiongllDM()