Lines Matching refs:M
55 PetscInt M; in main() local
107 PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &M, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); in main()
108 dt = .48 / (M * M); in main()
158 PetscInt i, mstart, mend, xm, M; in InitialConditions() local
164 PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &M, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); in InitialConditions()
165 h = 1.0 / M; in InitialConditions()
206 PetscInt i, mstart, mend, xm, M; in Solution() local
212 PetscCall(DMDAGetInfo(da, PETSC_IGNORE, &M, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); in Solution()
213 h = 1.0 / M; in Solution()
261 PetscInt i, idx[3], M, xm; in RHSMatrixHeat() local
267 PetscCall(DMDAGetInfo(da, 0, &M, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); in RHSMatrixHeat()
269 h = 1.0 / M; in RHSMatrixHeat()
283 idx[0] = M - 1; in RHSMatrixHeat()
290 if (mend == M) { in RHSMatrixHeat()
292 idx[0] = M - 2; in RHSMatrixHeat()
293 idx[1] = M - 1; in RHSMatrixHeat()
318 idx[0] = M - 1; in RHSMatrixHeat()
324 if (mend == M) { in RHSMatrixHeat()
326 idx[0] = M - 2; in RHSMatrixHeat()
347 if (mend == M) { in RHSMatrixHeat()
349 idx[0] = M - 1; in RHSMatrixHeat()