Home
last modified time | relevance | path

Searched refs:ratioj (Results 1 – 1 of 1) sorted by relevance

/petsc/src/dm/impls/da/
H A Ddainterp.c262 …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()
[all …]