Lines Matching refs:ratioj

262 …Int               row, col, i_start_ghost, j_start_ghost, cols[4], mx, m_c, my, nc, ratioi, ratioj;  in DMCreateInterpolation_DA_2D_Q1()  local
284 ratioj = my / My; in DMCreateInterpolation_DA_2D_Q1()
285 …PetscCheck(ratioj * My == my, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Ratio between levels: my/My … in DMCreateInterpolation_DA_2D_Q1()
288 ratioj = (my - 1) / (My - 1); in DMCreateInterpolation_DA_2D_Q1()
289 …PetscCheck(ratioj * (My - 1) == my - 1, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Ratio between leve… in DMCreateInterpolation_DA_2D_Q1()
325 j_c = (j / ratioj); /* coarse grid node below fine grid node */ 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()
371 j_c = (j / ratioj); /* coarse grid node below fine grid node */ in DMCreateInterpolation_DA_2D_Q1()
379 y = ((PetscReal)(j - j_c * ratioj)) / ((PetscReal)ratioj); in DMCreateInterpolation_DA_2D_Q1()
392 if (j_c * ratioj != j) { in DMCreateInterpolation_DA_2D_Q1()
397 if (j_c * ratioj != j && i_c * ratioi != i) { in DMCreateInterpolation_DA_2D_Q1()
412 neta = ratioj + 1; in DMCreateInterpolation_DA_2D_Q1()
425 j_c = (j / ratioj); /* coarse grid node below fine grid node */ in DMCreateInterpolation_DA_2D_Q1()
430 lj = j - ratioj * (j / ratioj); in DMCreateInterpolation_DA_2D_Q1()
490 …Int row, col, i_start_ghost, j_start_ghost, cols[4], mx, m_c, my, nc, ratioi, ratioj; in DMCreateInterpolation_DA_2D_Q0() local
504 ratioj = my / My; in DMCreateInterpolation_DA_2D_Q0()
506 …PetscCheck(ratioj * My == my, PetscObjectComm((PetscObject)daf), PETSC_ERR_ARG_WRONG, "Fine grid p… in DMCreateInterpolation_DA_2D_Q0()
508 …PetscCheck(ratioj == 2, PetscObjectComm((PetscObject)daf), PETSC_ERR_ARG_WRONG, "Coarsening factor… in DMCreateInterpolation_DA_2D_Q0()
543 j_c = (j / ratioj); /* coarse grid node below fine grid node */ in DMCreateInterpolation_DA_2D_Q0()
582 j_c = (j / ratioj); /* coarse grid node below fine grid node */ in DMCreateInterpolation_DA_2D_Q0()
611 …rt_ghost, j_start_ghost, l_start_ghost, cols[8], mx, m_c, my, n_c, mz, p_c, ratioi, ratioj, ratiol; in DMCreateInterpolation_DA_3D_Q0() local
626 ratioj = my / My; in DMCreateInterpolation_DA_3D_Q0()
629 …PetscCheck(ratioj * My == my, PetscObjectComm((PetscObject)daf), PETSC_ERR_ARG_WRONG, "Fine grid p… in DMCreateInterpolation_DA_3D_Q0()
632 …PetscCheck(ratioj == 2 || ratioj == 1, PetscObjectComm((PetscObject)daf), PETSC_ERR_ARG_WRONG, "Co… in DMCreateInterpolation_DA_3D_Q0()
669 j_c = (j / ratioj); /* coarse grid node below fine grid node */ in DMCreateInterpolation_DA_3D_Q0()
712 j_c = (j / ratioj); /* coarse grid node below fine grid node */ in DMCreateInterpolation_DA_3D_Q0()
740 … row, col, i_start_ghost, j_start_ghost, cols[8], mx, m_c, my, nc, ratioi, ratioj, ratiok; in DMCreateInterpolation_DA_3D_Q1() local
764 ratioj = 1; in DMCreateInterpolation_DA_3D_Q1()
767 ratioj = my / My; in DMCreateInterpolation_DA_3D_Q1()
768 …PetscCheck(ratioj * My == my, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Ratio between levels: my/My … in DMCreateInterpolation_DA_3D_Q1()
771 ratioj = (my - 1) / (My - 1); in DMCreateInterpolation_DA_3D_Q1()
772 …PetscCheck(ratioj * (My - 1) == my - 1, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Ratio between leve… in DMCreateInterpolation_DA_3D_Q1()
805 j_c = (j / ratioj); in DMCreateInterpolation_DA_3D_Q1()
820 if (j_c * ratioj != j) cols[nc++] = idx_c[col + m_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()
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()
854 j_c = (j / ratioj); in DMCreateInterpolation_DA_3D_Q1()
863 y = ((PetscReal)(j - j_c * ratioj)) / ((PetscReal)ratioj); in DMCreateInterpolation_DA_3D_Q1()
878 if (j_c * ratioj != j) { in DMCreateInterpolation_DA_3D_Q1()
888 if (j_c * ratioj != j && i_c * ratioi != i) { in DMCreateInterpolation_DA_3D_Q1()
893 if (j_c * ratioj != j && 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()
919 neta = ratioj + 1; in DMCreateInterpolation_DA_3D_Q1()
935 j_c = (j / ratioj); in DMCreateInterpolation_DA_3D_Q1()
941 lj = j - ratioj * (j / ratioj); in DMCreateInterpolation_DA_3D_Q1()
1114 PetscInt row, i_start_ghost, j_start_ghost, mx, m_c, my, nc, ratioi, ratioj; in DMCreateInjection_DA_2D() local
1132 ratioj = my / My; in DMCreateInjection_DA_2D()
1133 …PetscCheck(ratioj * My == my, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Ratio between levels: my/My … in DMCreateInjection_DA_2D()
1135 ratioj = (my - 1) / (My - 1); in DMCreateInjection_DA_2D()
1136 …PetscCheck(ratioj * (My - 1) == my - 1, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Ratio between leve… in DMCreateInjection_DA_2D()
1154 PetscInt i_f = i * ratioi, j_f = j * ratioj; in DMCreateInjection_DA_2D()
1179 PetscInt mx, my, mz, ratioi, ratioj, ratiok; in DMCreateInjection_DA_3D() local
1203 ratioj = my / My; in DMCreateInjection_DA_3D()
1204 …PetscCheck(ratioj * My == my, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Ratio between levels: my/My … in DMCreateInjection_DA_3D()
1206 ratioj = (my - 1) / (My - 1); in DMCreateInjection_DA_3D()
1207 …PetscCheck(ratioj * (My - 1) == my - 1, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Ratio between leve… in DMCreateInjection_DA_3D()
1233 PetscInt i_f = i * ratioi, j_f = j * ratioj, k_f = k * ratiok; in DMCreateInjection_DA_3D()