Lines Matching refs:i_c

45   PetscInt               i_c, i_start_c, i_start_ghost_c, cols[2], dof;  in DMCreateInterpolation_DA_1D_Q1()  local
94 i_c = (i / ratio); /* coarse grid node to left of fine grid node */ in DMCreateInterpolation_DA_1D_Q1()
95i_c >= i_start_ghost_c, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Processor's coarse DMDA must lie o… in DMCreateInterpolation_DA_1D_Q1()
102 x = ((PetscReal)(i - i_c * ratio)) / ((PetscReal)ratio); in DMCreateInterpolation_DA_1D_Q1()
105 col = (i_c - i_start_ghost_c); in DMCreateInterpolation_DA_1D_Q1()
109 if (i_c * ratio != i) { in DMCreateInterpolation_DA_1D_Q1()
130 i_c = (i / ratio); /* coarse grid node to left of fine grid node */ in DMCreateInterpolation_DA_1D_Q1()
131i_c >= i_start_ghost_c, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Processor's coarse DMDA must lie o… in DMCreateInterpolation_DA_1D_Q1()
136 col = (i_c - i_start_ghost_c); in DMCreateInterpolation_DA_1D_Q1()
146 if (i == mx - 1) i_c--; in DMCreateInterpolation_DA_1D_Q1()
148 col = (i_c - i_start_ghost_c); in DMCreateInterpolation_DA_1D_Q1()
177 PetscInt i_c, i_start_c, i_start_ghost_c, cols[2], dof; in DMCreateInterpolation_DA_1D_Q0() local
226 i_c = (i / ratio); /* coarse grid node to left of fine grid node */ in DMCreateInterpolation_DA_1D_Q0()
233 x = ((PetscReal)(i - i_c * ratio)) / ((PetscReal)ratio); in DMCreateInterpolation_DA_1D_Q0()
236 col = (i_c - i_start_ghost_c); in DMCreateInterpolation_DA_1D_Q0()
240 if (i_c * ratio != i) { in DMCreateInterpolation_DA_1D_Q0()
263 …PetscInt i_c, j_c, i_start_c, j_start_c, n_c, i_start_ghost_c, j_start_ghost_c, col_… in DMCreateInterpolation_DA_2D_Q1() local
324 i_c = (i / ratioi); /* coarse grid node to left of fine grid node */ in DMCreateInterpolation_DA_2D_Q1()
328i_c >= i_start_ghost_c, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Processor's coarse DMDA must lie o… in DMCreateInterpolation_DA_2D_Q1()
337 col = (m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c)); in DMCreateInterpolation_DA_2D_Q1()
340 if (i_c * ratioi != i) cols[nc++] = col_shift + idx_c[col + 1]; in DMCreateInterpolation_DA_2D_Q1()
344 … if (i_c * ratioi != i && j_c * ratioj != j) cols[nc++] = col_shift + idx_c[col + (m_ghost_c + 1)]; in DMCreateInterpolation_DA_2D_Q1()
370 i_c = (i / ratioi); /* coarse grid node to left of fine grid node */ in DMCreateInterpolation_DA_2D_Q1()
378 x = ((PetscReal)(i - i_c * ratioi)) / ((PetscReal)ratioi); in DMCreateInterpolation_DA_2D_Q1()
383 col = (m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c)); in DMCreateInterpolation_DA_2D_Q1()
387 if (i_c * ratioi != i) { in DMCreateInterpolation_DA_2D_Q1()
397 if (j_c * ratioj != j && i_c * ratioi != i) { in DMCreateInterpolation_DA_2D_Q1()
424 i_c = (i / ratioi); /* coarse grid node to left of fine grid node */ in DMCreateInterpolation_DA_2D_Q1()
434 col = (m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c)); in DMCreateInterpolation_DA_2D_Q1()
446 if (i == mx - 1) i_c--; in DMCreateInterpolation_DA_2D_Q1()
449 col = (m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c)); in DMCreateInterpolation_DA_2D_Q1()
491 …PetscInt i_c, j_c, i_start_c, j_start_c, n_c, i_start_ghost_c, j_start_ghost_c, col_… in DMCreateInterpolation_DA_2D_Q0() local
542 i_c = (i / ratioi); /* coarse grid node to left of fine grid node */ in DMCreateInterpolation_DA_2D_Q0()
546i_c >= i_start_ghost_c, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Processor's coarse DMDA must lie o… in DMCreateInterpolation_DA_2D_Q0()
555 col = (m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c)); in DMCreateInterpolation_DA_2D_Q0()
581 i_c = (i / ratioi); /* coarse grid node to left of fine grid node */ in DMCreateInterpolation_DA_2D_Q0()
585 col = (m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c)); in DMCreateInterpolation_DA_2D_Q0()
612 …PetscInt i_c, j_c, l_c, i_start_c, j_start_c, l_start_c, i_start_ghost_c, j_start_gh… in DMCreateInterpolation_DA_3D_Q0() local
668 i_c = (i / ratioi); /* coarse grid node to left of fine grid node */ in DMCreateInterpolation_DA_3D_Q0()
674i_c >= i_start_ghost_c, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Processor's coarse DMDA must lie o… in DMCreateInterpolation_DA_3D_Q0()
683 …ghost_c * (l_c - l_start_ghost_c) + m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c)); in DMCreateInterpolation_DA_3D_Q0()
711 i_c = (i / ratioi); /* coarse grid node to left of fine grid node */ in DMCreateInterpolation_DA_3D_Q0()
716 …ghost_c * (l_c - l_start_ghost_c) + m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c)); in DMCreateInterpolation_DA_3D_Q0()
741 PetscInt i_c, j_c, i_start_c, j_start_c, n_c, i_start_ghost_c, j_start_ghost_c; in DMCreateInterpolation_DA_3D_Q1() local
804 i_c = (i / ratioi); in DMCreateInterpolation_DA_3D_Q1()
809i_c >= i_start_ghost_c, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Processor's coarse DMDA must lie o… in DMCreateInterpolation_DA_3D_Q1()
817 …ghost_c * (l_c - l_start_ghost_c) + m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c)); in DMCreateInterpolation_DA_3D_Q1()
819 if (i_c * ratioi != i) cols[nc++] = idx_c[col + 1]; in DMCreateInterpolation_DA_3D_Q1()
822 if (j_c * ratioj != j && i_c * ratioi != i) cols[nc++] = idx_c[col + (m_ghost_c + 1)]; in DMCreateInterpolation_DA_3D_Q1()
824 … if (i_c * ratioi != i && l_c * ratiok != l) cols[nc++] = idx_c[col + (m_ghost_c * n_ghost_c + 1)]; in DMCreateInterpolation_DA_3D_Q1()
825 …if (i_c * ratioi != i && l_c * ratiok != l && j_c * ratioj != j) cols[nc++] = idx_c[col + (m_ghost… in DMCreateInterpolation_DA_3D_Q1()
853 i_c = (i / ratioi); in DMCreateInterpolation_DA_3D_Q1()
862 x = ((PetscReal)(i - i_c * ratioi)) / ((PetscReal)ratioi); in DMCreateInterpolation_DA_3D_Q1()
868 …ghost_c * (l_c - l_start_ghost_c) + m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c)); in DMCreateInterpolation_DA_3D_Q1()
873 if (i_c * ratioi != i) { in DMCreateInterpolation_DA_3D_Q1()
888 if (j_c * ratioj != j && i_c * ratioi != i) { in DMCreateInterpolation_DA_3D_Q1()
898 if (i_c * ratioi != i && l_c * ratiok != l) { in DMCreateInterpolation_DA_3D_Q1()
903 if (i_c * ratioi != i && l_c * ratiok != l && j_c * ratioj != j) { in DMCreateInterpolation_DA_3D_Q1()
934 i_c = (i / ratioi); in DMCreateInterpolation_DA_3D_Q1()
947 …ghost_c * (l_c - l_start_ghost_c) + m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c)); in DMCreateInterpolation_DA_3D_Q1()
961 if (i == mx - 1) i_c--; in DMCreateInterpolation_DA_3D_Q1()
965 …ghost_c * (l_c - l_start_ghost_c) + m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c)); in DMCreateInterpolation_DA_3D_Q1()
1342 PetscInt i_c, j_c, l_c; in DMDACreateAggregates() local
1408 for (i_c = i_start_c; i_c < i_start_c + m_c; i_c++) { in DMDACreateAggregates()
1411 …ghost_c * (l_c - l_start_ghost_c) + m_ghost_c * (j_c - j_start_ghost_c) + (i_c - i_start_ghost_c))… in DMDACreateAggregates()
1420 for (i = i_c * Mf / Mc; i < PetscMin((i_c + 1) * Mf / Mc, Mf); i++) { in DMDACreateAggregates()