Lines Matching refs:Mx
160 PetscInt i, Mx, xs, xm; in FormIFunction() local
168 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNOR… in FormIFunction()
170 hx = 1.0 / (PetscReal)(Mx - 1); in FormIFunction()
193 if (i == 0 || i == Mx - 1) f[i] = u[i]; /* F = U */ in FormIFunction()
197 else if (i == Mx - 1) f[i] = u[i] - u[i - 1]; in FormIFunction()
216 PetscInt i, rstart, rend, Mx; in FormIJacobian() local
227 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNOR… in FormIJacobian()
228 hx = 1.0 / (PetscReal)(Mx - 1); in FormIJacobian()
233 if (user->boundary == 0 && (i == 0 || i == Mx - 1)) { in FormIJacobian()
241 } else if (user->boundary > 0 && i == Mx - 1) { /* Right Neumann */ in FormIJacobian()
276 PetscInt i, xs, xm, Mx; in FormInitialSolution() local
282 …PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &Mx, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNORE, PETSC_IGNOR… in FormInitialSolution()
284 hx = 1.0 / (PetscReal)(Mx - 1); in FormInitialSolution()