Lines Matching refs:idx_c
42 const PetscInt *idx_f, *idx_c; in DMCreateInterpolation_DA_1D_Q1() local
71 PetscCall(ISLocalToGlobalMappingGetBlockIndices(ltog_c, &idx_c)); in DMCreateInterpolation_DA_1D_Q1()
106 cols[nc] = idx_c[col]; in DMCreateInterpolation_DA_1D_Q1()
110 cols[nc] = idx_c[col + 1]; in DMCreateInterpolation_DA_1D_Q1()
137 cols[0] = idx_c[col]; in DMCreateInterpolation_DA_1D_Q1()
149 cols[0] = idx_c[col]; /* one left and below; or we are right on it */ in DMCreateInterpolation_DA_1D_Q1()
150 cols[1] = idx_c[col + 1]; in DMCreateInterpolation_DA_1D_Q1()
162 PetscCall(ISLocalToGlobalMappingRestoreBlockIndices(ltog_c, &idx_c)); in DMCreateInterpolation_DA_1D_Q1()
173 const PetscInt *idx_f, *idx_c; in DMCreateInterpolation_DA_1D_Q0() local
204 PetscCall(ISLocalToGlobalMappingGetBlockIndices(ltog_c, &idx_c)); in DMCreateInterpolation_DA_1D_Q0()
237 cols[nc] = idx_c[col]; in DMCreateInterpolation_DA_1D_Q0()
241 cols[nc] = idx_c[col + 1]; in DMCreateInterpolation_DA_1D_Q0()
247 PetscCall(ISLocalToGlobalMappingRestoreBlockIndices(ltog_c, &idx_c)); in DMCreateInterpolation_DA_1D_Q0()
259 const PetscInt *idx_c, *idx_f; in DMCreateInterpolation_DA_2D_Q1() local
300 PetscCall(ISLocalToGlobalMappingGetBlockIndices(ltog_c, &idx_c)); in DMCreateInterpolation_DA_2D_Q1()
338 cols[nc++] = col_shift + idx_c[col]; in DMCreateInterpolation_DA_2D_Q1()
340 if (i_c * ratioi != i) cols[nc++] = col_shift + idx_c[col + 1]; in DMCreateInterpolation_DA_2D_Q1()
342 if (j_c * ratioj != j) cols[nc++] = col_shift + idx_c[col + m_ghost_c]; 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()
384 cols[nc] = col_shift + idx_c[col]; in DMCreateInterpolation_DA_2D_Q1()
388 cols[nc] = col_shift + idx_c[col + 1]; in DMCreateInterpolation_DA_2D_Q1()
393 cols[nc] = col_shift + idx_c[col + m_ghost_c]; in DMCreateInterpolation_DA_2D_Q1()
398 cols[nc] = col_shift + idx_c[col + (m_ghost_c + 1)]; in DMCreateInterpolation_DA_2D_Q1()
435 cols[0] = col_shift + idx_c[col]; /* left, below */ in DMCreateInterpolation_DA_2D_Q1()
450 cols[0] = col_shift + idx_c[col]; /* left, below */ in DMCreateInterpolation_DA_2D_Q1()
451 cols[1] = col_shift + idx_c[col + 1]; /* right, below */ in DMCreateInterpolation_DA_2D_Q1()
452 cols[2] = col_shift + idx_c[col + m_ghost_c]; /* left, above */ in DMCreateInterpolation_DA_2D_Q1()
453 cols[3] = col_shift + idx_c[col + (m_ghost_c + 1)]; /* right, above */ in DMCreateInterpolation_DA_2D_Q1()
473 PetscCall(ISLocalToGlobalMappingRestoreBlockIndices(ltog_c, &idx_c)); in DMCreateInterpolation_DA_2D_Q1()
487 const PetscInt *idx_c, *idx_f; in DMCreateInterpolation_DA_2D_Q0() local
518 PetscCall(ISLocalToGlobalMappingGetBlockIndices(ltog_c, &idx_c)); in DMCreateInterpolation_DA_2D_Q0()
556 cols[nc++] = col_shift + idx_c[col]; in DMCreateInterpolation_DA_2D_Q0()
586 cols[nc] = col_shift + idx_c[col]; in DMCreateInterpolation_DA_2D_Q0()
593 PetscCall(ISLocalToGlobalMappingRestoreBlockIndices(ltog_c, &idx_c)); in DMCreateInterpolation_DA_2D_Q0()
608 const PetscInt *idx_c, *idx_f; in DMCreateInterpolation_DA_3D_Q0() local
643 PetscCall(ISLocalToGlobalMappingGetBlockIndices(ltog_c, &idx_c)); in DMCreateInterpolation_DA_3D_Q0()
684 cols[nc++] = col_shift + idx_c[col]; in DMCreateInterpolation_DA_3D_Q0()
717 cols[nc] = col_shift + idx_c[col]; in DMCreateInterpolation_DA_3D_Q0()
725 PetscCall(ISLocalToGlobalMappingRestoreBlockIndices(ltog_c, &idx_c)); in DMCreateInterpolation_DA_3D_Q0()
737 const PetscInt *idx_c, *idx_f; in DMCreateInterpolation_DA_3D_Q1() local
794 PetscCall(ISLocalToGlobalMappingGetBlockIndices(ltog_c, &idx_c)); in DMCreateInterpolation_DA_3D_Q1()
818 cols[nc++] = idx_c[col]; in DMCreateInterpolation_DA_3D_Q1()
819 if (i_c * ratioi != i) cols[nc++] = idx_c[col + 1]; in DMCreateInterpolation_DA_3D_Q1()
820 if (j_c * ratioj != j) cols[nc++] = idx_c[col + m_ghost_c]; in DMCreateInterpolation_DA_3D_Q1()
821 if (l_c * ratiok != l) cols[nc++] = idx_c[col + m_ghost_c * n_ghost_c]; 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()
823 …if (j_c * ratioj != j && l_c * ratiok != l) cols[nc++] = idx_c[col + (m_ghost_c * n_ghost_c + m_gh… 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()
870 cols[nc] = idx_c[col]; in DMCreateInterpolation_DA_3D_Q1()
874 cols[nc] = idx_c[col + 1]; in DMCreateInterpolation_DA_3D_Q1()
879 cols[nc] = idx_c[col + m_ghost_c]; in DMCreateInterpolation_DA_3D_Q1()
884 cols[nc] = idx_c[col + m_ghost_c * n_ghost_c]; in DMCreateInterpolation_DA_3D_Q1()
889 cols[nc] = idx_c[col + (m_ghost_c + 1)]; in DMCreateInterpolation_DA_3D_Q1()
894 cols[nc] = idx_c[col + (m_ghost_c * n_ghost_c + m_ghost_c)]; in DMCreateInterpolation_DA_3D_Q1()
899 cols[nc] = idx_c[col + (m_ghost_c * n_ghost_c + 1)]; in DMCreateInterpolation_DA_3D_Q1()
904 cols[nc] = idx_c[col + (m_ghost_c * n_ghost_c + m_ghost_c + 1)]; in DMCreateInterpolation_DA_3D_Q1()
948 cols[0] = idx_c[col]; in DMCreateInterpolation_DA_3D_Q1()
966 cols[0] = idx_c[col]; /* one left and below; or we are right on it */ in DMCreateInterpolation_DA_3D_Q1()
967 cols[1] = idx_c[col + 1]; /* one right and below */ in DMCreateInterpolation_DA_3D_Q1()
968 cols[2] = idx_c[col + m_ghost_c]; /* one left and above */ in DMCreateInterpolation_DA_3D_Q1()
969 cols[3] = idx_c[col + (m_ghost_c + 1)]; /* one right and above */ in DMCreateInterpolation_DA_3D_Q1()
971 …cols[4] = idx_c[col + m_ghost_c * n_ghost_c]; /* one left and below and front; o… in DMCreateInterpolation_DA_3D_Q1()
972 …cols[5] = idx_c[col + (m_ghost_c * n_ghost_c + 1)]; /* one right and below, and front … in DMCreateInterpolation_DA_3D_Q1()
973 … cols[6] = idx_c[col + (m_ghost_c * n_ghost_c + m_ghost_c)]; /* one left and above and front*/ in DMCreateInterpolation_DA_3D_Q1()
974 …cols[7] = idx_c[col + (m_ghost_c * n_ghost_c + m_ghost_c + 1)]; /* one right and above and front */ in DMCreateInterpolation_DA_3D_Q1()
998 PetscCall(ISLocalToGlobalMappingRestoreBlockIndices(ltog_c, &idx_c)); in DMCreateInterpolation_DA_3D_Q1()
1111 const PetscInt *idx_c, *idx_f; in DMCreateInjection_DA_2D() local
1147 PetscCall(ISLocalToGlobalMappingGetBlockIndices(ltog_c, &idx_c)); in DMCreateInjection_DA_2D()
1162 PetscCall(ISLocalToGlobalMappingRestoreBlockIndices(ltog_c, &idx_c)); in DMCreateInjection_DA_2D()
1184 const PetscInt *idx_c, *idx_f; in DMCreateInjection_DA_3D() local
1225 PetscCall(ISLocalToGlobalMappingGetBlockIndices(ltog_c, &idx_c)); in DMCreateInjection_DA_3D()
1252 PetscCall(ISLocalToGlobalMappingRestoreBlockIndices(ltog_c, &idx_c)); in DMCreateInjection_DA_3D()
1345 const PetscInt *idx_c; in DMDACreateAggregates() local
1386 PetscCall(ISLocalToGlobalMappingGetIndices(ltogmc, &idx_c)); in DMDACreateAggregates()
1411 …a = idx_c[dofc * (m_ghost_c * n_ghost_c * (l_c - l_start_ghost_c) + m_ghost_c * (j_c - j_start_gho… in DMDACreateAggregates()
1433 PetscCall(ISLocalToGlobalMappingRestoreIndices(ltogmc, &idx_c)); in DMDACreateAggregates()