Lines Matching refs:nc

44   PetscInt               row, col, i_start_ghost, mx, m_c, nc, ratio;  in DMCreateInterpolation_DA_1D_Q1()  local
103 nc = 0; in DMCreateInterpolation_DA_1D_Q1()
106 cols[nc] = idx_c[col]; in DMCreateInterpolation_DA_1D_Q1()
107 v[nc++] = -x + 1.0; in DMCreateInterpolation_DA_1D_Q1()
110 cols[nc] = idx_c[col + 1]; in DMCreateInterpolation_DA_1D_Q1()
111 v[nc++] = x; in DMCreateInterpolation_DA_1D_Q1()
113 PetscCall(MatSetValues(mat, 1, &row, nc, cols, v, INSERT_VALUES)); in DMCreateInterpolation_DA_1D_Q1()
176 PetscInt row, col, i_start_ghost, mx, m_c, nc, ratio; in DMCreateInterpolation_DA_1D_Q0() local
234 nc = 0; in DMCreateInterpolation_DA_1D_Q0()
237 cols[nc] = idx_c[col]; in DMCreateInterpolation_DA_1D_Q0()
238 v[nc++] = -x + 1.0; in DMCreateInterpolation_DA_1D_Q0()
241 cols[nc] = idx_c[col + 1]; in DMCreateInterpolation_DA_1D_Q0()
242 v[nc++] = x; in DMCreateInterpolation_DA_1D_Q0()
244 PetscCall(MatSetValues(mat, 1, &row, nc, cols, v, INSERT_VALUES)); in DMCreateInterpolation_DA_1D_Q0()
262 …PetscInt row, col, i_start_ghost, j_start_ghost, cols[4], mx, m_c, my, nc, ratioi, r… in DMCreateInterpolation_DA_2D_Q1() local
335 nc = 0; 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()
345 PetscCall(MatPreallocateSet(row, nc, cols, dnz, onz)); in DMCreateInterpolation_DA_2D_Q1()
381 nc = 0; in DMCreateInterpolation_DA_2D_Q1()
384 cols[nc] = col_shift + idx_c[col]; in DMCreateInterpolation_DA_2D_Q1()
385 v[nc++] = x * y - x - y + 1.0; in DMCreateInterpolation_DA_2D_Q1()
388 cols[nc] = col_shift + idx_c[col + 1]; in DMCreateInterpolation_DA_2D_Q1()
389 v[nc++] = -x * y + x; in DMCreateInterpolation_DA_2D_Q1()
393 cols[nc] = col_shift + idx_c[col + m_ghost_c]; in DMCreateInterpolation_DA_2D_Q1()
394 v[nc++] = -x * y + y; in DMCreateInterpolation_DA_2D_Q1()
398 cols[nc] = col_shift + idx_c[col + (m_ghost_c + 1)]; in DMCreateInterpolation_DA_2D_Q1()
399 v[nc++] = x * y; in DMCreateInterpolation_DA_2D_Q1()
401 PetscCall(MatSetValues(mat, 1, &row, nc, cols, v, INSERT_VALUES)); in DMCreateInterpolation_DA_2D_Q1()
460 nc = 0; in DMCreateInterpolation_DA_2D_Q1()
490 …PetscInt row, col, i_start_ghost, j_start_ghost, cols[4], mx, m_c, my, nc, ratioi, r… in DMCreateInterpolation_DA_2D_Q0() local
553 nc = 0; in DMCreateInterpolation_DA_2D_Q0()
556 cols[nc++] = col_shift + idx_c[col]; in DMCreateInterpolation_DA_2D_Q0()
557 PetscCall(MatPreallocateSet(row, nc, cols, dnz, onz)); in DMCreateInterpolation_DA_2D_Q0()
583 nc = 0; in DMCreateInterpolation_DA_2D_Q0()
586 cols[nc] = col_shift + idx_c[col]; in DMCreateInterpolation_DA_2D_Q0()
587 v[nc++] = 1.0; in DMCreateInterpolation_DA_2D_Q0()
589 PetscCall(MatSetValues(mat, 1, &row, nc, cols, v, INSERT_VALUES)); in DMCreateInterpolation_DA_2D_Q0()
610 PetscInt m_ghost, n_ghost, p_ghost, m_ghost_c, n_ghost_c, p_ghost_c, nc, *dnz, *onz; in DMCreateInterpolation_DA_3D_Q0() local
681 nc = 0; in DMCreateInterpolation_DA_3D_Q0()
684 cols[nc++] = col_shift + idx_c[col]; in DMCreateInterpolation_DA_3D_Q0()
685 PetscCall(MatPreallocateSet(row, nc, cols, dnz, onz)); in DMCreateInterpolation_DA_3D_Q0()
714 nc = 0; in DMCreateInterpolation_DA_3D_Q0()
717 cols[nc] = col_shift + idx_c[col]; in DMCreateInterpolation_DA_3D_Q0()
718 v[nc++] = 1.0; in DMCreateInterpolation_DA_3D_Q0()
720 PetscCall(MatSetValues(mat, 1, &row, nc, cols, v, INSERT_VALUES)); in DMCreateInterpolation_DA_3D_Q0()
740 …PetscInt row, col, i_start_ghost, j_start_ghost, cols[8], mx, m_c, my, nc, ratioi, r… in DMCreateInterpolation_DA_3D_Q1() local
816 nc = 0; 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()
826 PetscCall(MatPreallocateSet(row, nc, cols, dnz, onz)); in DMCreateInterpolation_DA_3D_Q1()
866 nc = 0; in DMCreateInterpolation_DA_3D_Q1()
870 cols[nc] = idx_c[col]; in DMCreateInterpolation_DA_3D_Q1()
871 v[nc++] = .125 * (1. - (2.0 * x - 1.)) * (1. - (2.0 * y - 1.)) * (1. - (2.0 * z - 1.)); in DMCreateInterpolation_DA_3D_Q1()
874 cols[nc] = idx_c[col + 1]; in DMCreateInterpolation_DA_3D_Q1()
875 v[nc++] = .125 * (1. + (2.0 * x - 1.)) * (1. - (2.0 * y - 1.)) * (1. - (2.0 * z - 1.)); in DMCreateInterpolation_DA_3D_Q1()
879 cols[nc] = idx_c[col + m_ghost_c]; in DMCreateInterpolation_DA_3D_Q1()
880 v[nc++] = .125 * (1. - (2.0 * x - 1.)) * (1. + (2.0 * y - 1.)) * (1. - (2.0 * z - 1.)); in DMCreateInterpolation_DA_3D_Q1()
884 cols[nc] = idx_c[col + m_ghost_c * n_ghost_c]; in DMCreateInterpolation_DA_3D_Q1()
885 v[nc++] = .125 * (1. - (2.0 * x - 1.)) * (1. - (2.0 * y - 1.)) * (1. + (2.0 * z - 1.)); in DMCreateInterpolation_DA_3D_Q1()
889 cols[nc] = idx_c[col + (m_ghost_c + 1)]; in DMCreateInterpolation_DA_3D_Q1()
890 v[nc++] = .125 * (1. + (2.0 * x - 1.)) * (1. + (2.0 * y - 1.)) * (1. - (2.0 * z - 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()
895 v[nc++] = .125 * (1. - (2.0 * x - 1.)) * (1. + (2.0 * y - 1.)) * (1. + (2.0 * z - 1.)); in DMCreateInterpolation_DA_3D_Q1()
899 cols[nc] = idx_c[col + (m_ghost_c * n_ghost_c + 1)]; in DMCreateInterpolation_DA_3D_Q1()
900 v[nc++] = .125 * (1. + (2.0 * x - 1.)) * (1. - (2.0 * y - 1.)) * (1. + (2.0 * z - 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()
905 v[nc++] = .125 * (1. + (2.0 * x - 1.)) * (1. + (2.0 * y - 1.)) * (1. + (2.0 * z - 1.)); in DMCreateInterpolation_DA_3D_Q1()
907 PetscCall(MatSetValues(mat, 1, &row, nc, cols, v, INSERT_VALUES)); in DMCreateInterpolation_DA_3D_Q1()
1009 PetscInt dimc, Mc, Nc, Pc, mc, nc, pc, dofc, sc, dimf, Mf, Nf, Pf, mf, nf, pf, doff, sf; in DMCreateInterpolation_DA() local
1020 …PetscCall(DMDAGetInfo(dac, &dimc, &Mc, &Nc, &Pc, &mc, &nc, &pc, &dofc, &sc, &bxc, &byc, &bzc, &stc… in DMCreateInterpolation_DA()
1058 PetscInt row, i_start_ghost, mx, m_c, nc, ratioi; in DMCreateInjection_DA_1D() local
1085 nc = 0; in DMCreateInjection_DA_1D()
1094 cols[nc++] = row; in DMCreateInjection_DA_1D()
1098 …PetscCall(ISCreateBlock(PetscObjectComm((PetscObject)daf), dof, nc, cols, PETSC_OWN_POINTER, &isf)… in DMCreateInjection_DA_1D()
1114 PetscInt row, i_start_ghost, j_start_ghost, mx, m_c, my, nc, ratioi, ratioj; in DMCreateInjection_DA_2D() local
1150 nc = 0; in DMCreateInjection_DA_2D()
1158 cols[nc++] = row; in DMCreateInjection_DA_2D()
1164 …PetscCall(ISCreateBlock(PetscObjectComm((PetscObject)daf), dof, nc, cols, PETSC_OWN_POINTER, &isf)… in DMCreateInjection_DA_2D()
1183 PetscInt row, nc, dof; in DMCreateInjection_DA_3D() local
1228 nc = 0; in DMCreateInjection_DA_3D()
1247 cols[nc++] = row; in DMCreateInjection_DA_3D()
1254 …PetscCall(ISCreateBlock(PetscObjectComm((PetscObject)daf), dof, nc, cols, PETSC_OWN_POINTER, &isf)… in DMCreateInjection_DA_3D()
1266 PetscInt dimc, Mc, Nc, Pc, mc, nc, pc, dofc, sc, dimf, Mf, Nf, Pf, mf, nf, pf, doff, sf; in DMCreateInjection_DA() local
1276 …PetscCall(DMDAGetInfo(dac, &dimc, &Mc, &Nc, &Pc, &mc, &nc, &pc, &dofc, &sc, &bxc, &byc, &bzc, &stc… in DMCreateInjection_DA()
1334 PetscInt dimc, Mc, Nc, Pc, mc, nc, pc, dofc, sc; in DMDACreateAggregates() local
1359 …PetscCall(DMDAGetInfo(dac, &dimc, &Mc, &Nc, &Pc, &mc, &nc, &pc, &dofc, &sc, &bxc, &byc, &bzc, &stc… in DMDACreateAggregates()