Lines Matching refs:dac

39 static PetscErrorCode DMCreateInterpolation_DA_1D_Q1(DM dac, DM daf, Mat *A)  in DMCreateInterpolation_DA_1D_Q1()  argument
53 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &bx, NULL, NULL, N… in DMCreateInterpolation_DA_1D_Q1()
68 PetscCall(DMDAGetCorners(dac, &i_start_c, NULL, NULL, &m_c, NULL, NULL)); in DMCreateInterpolation_DA_1D_Q1()
69 PetscCall(DMDAGetGhostCorners(dac, &i_start_ghost_c, NULL, NULL, &m_ghost_c, NULL, NULL)); in DMCreateInterpolation_DA_1D_Q1()
70 PetscCall(DMGetLocalToGlobalMapping(dac, &ltog_c)); in DMCreateInterpolation_DA_1D_Q1()
74 PetscCall(MatCreate(PetscObjectComm((PetscObject)dac), &mat)); in DMCreateInterpolation_DA_1D_Q1()
83 PetscCall(ConvertToAIJ(dac->mattype, &mattype)); in DMCreateInterpolation_DA_1D_Q1()
170 static PetscErrorCode DMCreateInterpolation_DA_1D_Q0(DM dac, DM daf, Mat *A) in DMCreateInterpolation_DA_1D_Q0() argument
184 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &bx, NULL, NULL, N… in DMCreateInterpolation_DA_1D_Q0()
201 PetscCall(DMDAGetCorners(dac, &i_start_c, NULL, NULL, &m_c, NULL, NULL)); in DMCreateInterpolation_DA_1D_Q0()
202 PetscCall(DMDAGetGhostCorners(dac, &i_start_ghost_c, NULL, NULL, &m_ghost_c, NULL, NULL)); in DMCreateInterpolation_DA_1D_Q0()
203 PetscCall(DMGetLocalToGlobalMapping(dac, &ltog_c)); in DMCreateInterpolation_DA_1D_Q0()
207 PetscCall(MatCreate(PetscObjectComm((PetscObject)dac), &mat)); in DMCreateInterpolation_DA_1D_Q0()
216 PetscCall(ConvertToAIJ(dac->mattype, &mattype)); in DMCreateInterpolation_DA_1D_Q0()
256 static PetscErrorCode DMCreateInterpolation_DA_2D_Q1(DM dac, DM daf, Mat *A) in DMCreateInterpolation_DA_2D_Q1() argument
271 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, &My, NULL, NULL, NULL, NULL, NULL, NULL, &bx, &by, NULL, NUL… in DMCreateInterpolation_DA_2D_Q1()
297 PetscCall(DMDAGetCorners(dac, &i_start_c, &j_start_c, NULL, &m_c, &n_c, NULL)); in DMCreateInterpolation_DA_2D_Q1()
298 …PetscCall(DMDAGetGhostCorners(dac, &i_start_ghost_c, &j_start_ghost_c, NULL, &m_ghost_c, &n_ghost_… in DMCreateInterpolation_DA_2D_Q1()
299 PetscCall(DMGetLocalToGlobalMapping(dac, &ltog_c)); in DMCreateInterpolation_DA_2D_Q1()
312 PetscCallMPI(MPI_Comm_size(PetscObjectComm((PetscObject)dac), &size_c)); in DMCreateInterpolation_DA_2D_Q1()
357 PetscCall(ConvertToAIJ(dac->mattype, &mattype)); in DMCreateInterpolation_DA_2D_Q1()
484 static PetscErrorCode DMCreateInterpolation_DA_2D_Q0(DM dac, DM daf, Mat *A) in DMCreateInterpolation_DA_2D_Q0() argument
499 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, &My, NULL, NULL, NULL, NULL, NULL, NULL, &bx, &by, NULL, NUL… in DMCreateInterpolation_DA_2D_Q0()
515 PetscCall(DMDAGetCorners(dac, &i_start_c, &j_start_c, NULL, &m_c, &n_c, NULL)); in DMCreateInterpolation_DA_2D_Q0()
516 …PetscCall(DMDAGetGhostCorners(dac, &i_start_ghost_c, &j_start_ghost_c, NULL, &m_ghost_c, &n_ghost_… in DMCreateInterpolation_DA_2D_Q0()
517 PetscCall(DMGetLocalToGlobalMapping(dac, &ltog_c)); in DMCreateInterpolation_DA_2D_Q0()
530 PetscCallMPI(MPI_Comm_size(PetscObjectComm((PetscObject)dac), &size_c)); in DMCreateInterpolation_DA_2D_Q0()
569 PetscCall(ConvertToAIJ(dac->mattype, &mattype)); in DMCreateInterpolation_DA_2D_Q0()
605 static PetscErrorCode DMCreateInterpolation_DA_3D_Q0(DM dac, DM daf, Mat *A) in DMCreateInterpolation_DA_3D_Q0() argument
620 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, &My, &Mz, NULL, NULL, NULL, NULL, NULL, &bx, &by, &bz, NULL)… in DMCreateInterpolation_DA_3D_Q0()
640 PetscCall(DMDAGetCorners(dac, &i_start_c, &j_start_c, &l_start_c, &m_c, &n_c, &p_c)); in DMCreateInterpolation_DA_3D_Q0()
641 …PetscCall(DMDAGetGhostCorners(dac, &i_start_ghost_c, &j_start_ghost_c, &l_start_ghost_c, &m_ghost_… in DMCreateInterpolation_DA_3D_Q0()
642 PetscCall(DMGetLocalToGlobalMapping(dac, &ltog_c)); in DMCreateInterpolation_DA_3D_Q0()
655 PetscCallMPI(MPI_Comm_size(PetscObjectComm((PetscObject)dac), &size_c)); in DMCreateInterpolation_DA_3D_Q0()
698 PetscCall(ConvertToAIJ(dac->mattype, &mattype)); in DMCreateInterpolation_DA_3D_Q0()
734 static PetscErrorCode DMCreateInterpolation_DA_3D_Q1(DM dac, DM daf, Mat *A) in DMCreateInterpolation_DA_3D_Q1() argument
750 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, &My, &Mz, NULL, NULL, NULL, NULL, NULL, &bx, &by, &bz, NULL)… in DMCreateInterpolation_DA_3D_Q1()
791 PetscCall(DMDAGetCorners(dac, &i_start_c, &j_start_c, &l_start_c, &m_c, &n_c, &p_c)); in DMCreateInterpolation_DA_3D_Q1()
792 …PetscCall(DMDAGetGhostCorners(dac, &i_start_ghost_c, &j_start_ghost_c, &l_start_ghost_c, &m_ghost_… in DMCreateInterpolation_DA_3D_Q1()
793 PetscCall(DMGetLocalToGlobalMapping(dac, &ltog_c)); in DMCreateInterpolation_DA_3D_Q1()
797 …MatPreallocateBegin(PetscObjectComm((PetscObject)dac), m_f * n_f * p_f, m_c * n_c * p_c, dnz, onz); in DMCreateInterpolation_DA_3D_Q1()
830 PetscCall(MatCreate(PetscObjectComm((PetscObject)dac), &mat)); in DMCreateInterpolation_DA_3D_Q1()
839 PetscCall(ConvertToAIJ(dac->mattype, &mattype)); in DMCreateInterpolation_DA_3D_Q1()
1007 PetscErrorCode DMCreateInterpolation_DA(DM dac, DM daf, Mat *A, Vec *scale) in DMCreateInterpolation_DA() argument
1012 DM_DA *ddc = (DM_DA *)dac->data; in DMCreateInterpolation_DA()
1015 PetscValidHeaderSpecific(dac, DM_CLASSID, 1); in DMCreateInterpolation_DA()
1020 …PetscCall(DMDAGetInfo(dac, &dimc, &Mc, &Nc, &Pc, &mc, &nc, &pc, &dofc, &sc, &bxc, &byc, &bzc, &stc… in DMCreateInterpolation_DA()
1033 PetscCall(DMCreateInterpolation_DA_1D_Q1(dac, daf, A)); in DMCreateInterpolation_DA()
1035 PetscCall(DMCreateInterpolation_DA_2D_Q1(dac, daf, A)); in DMCreateInterpolation_DA()
1037 PetscCall(DMCreateInterpolation_DA_3D_Q1(dac, daf, A)); in DMCreateInterpolation_DA()
1041 PetscCall(DMCreateInterpolation_DA_1D_Q0(dac, daf, A)); in DMCreateInterpolation_DA()
1043 PetscCall(DMCreateInterpolation_DA_2D_Q0(dac, daf, A)); in DMCreateInterpolation_DA()
1045 PetscCall(DMCreateInterpolation_DA_3D_Q0(dac, daf, A)); in DMCreateInterpolation_DA()
1048 if (scale) PetscCall(DMCreateInterpolationScale(dac, daf, *A, scale)); in DMCreateInterpolation_DA()
1052 static PetscErrorCode DMCreateInjection_DA_1D(DM dac, DM daf, VecScatter *inject) in DMCreateInjection_DA_1D() argument
1066 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &bx, NULL, NULL, N… in DMCreateInjection_DA_1D()
1081 PetscCall(DMDAGetCorners(dac, &i_start_c, NULL, NULL, &m_c, NULL, NULL)); in DMCreateInjection_DA_1D()
1082 PetscCall(DMDAGetGhostCorners(dac, &i_start_ghost_c, NULL, NULL, &m_ghost_c, NULL, NULL)); in DMCreateInjection_DA_1D()
1099 PetscCall(DMGetGlobalVector(dac, &vecc)); in DMCreateInjection_DA_1D()
1102 PetscCall(DMRestoreGlobalVector(dac, &vecc)); in DMCreateInjection_DA_1D()
1108 static PetscErrorCode DMCreateInjection_DA_2D(DM dac, DM daf, VecScatter *inject) in DMCreateInjection_DA_2D() argument
1122 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, &My, NULL, NULL, NULL, NULL, NULL, NULL, &bx, &by, NULL, NUL… in DMCreateInjection_DA_2D()
1144 PetscCall(DMDAGetCorners(dac, &i_start_c, &j_start_c, NULL, &m_c, &n_c, NULL)); in DMCreateInjection_DA_2D()
1145 …PetscCall(DMDAGetGhostCorners(dac, &i_start_ghost_c, &j_start_ghost_c, NULL, &m_ghost_c, &n_ghost_… in DMCreateInjection_DA_2D()
1146 PetscCall(DMGetLocalToGlobalMapping(dac, &ltog_c)); in DMCreateInjection_DA_2D()
1165 PetscCall(DMGetGlobalVector(dac, &vecc)); in DMCreateInjection_DA_2D()
1168 PetscCall(DMRestoreGlobalVector(dac, &vecc)); in DMCreateInjection_DA_2D()
1174 static PetscErrorCode DMCreateInjection_DA_3D(DM dac, DM daf, VecScatter *inject) in DMCreateInjection_DA_3D() argument
1192 …PetscCall(DMDAGetInfo(dac, NULL, &Mx, &My, &Mz, NULL, NULL, NULL, NULL, NULL, &bx, &by, &bz, NULL)… in DMCreateInjection_DA_3D()
1222 PetscCall(DMDAGetCorners(dac, &i_start_c, &j_start_c, &k_start_c, &m_c, &n_c, &p_c)); in DMCreateInjection_DA_3D()
1223 …PetscCall(DMDAGetGhostCorners(dac, &i_start_ghost_c, &j_start_ghost_c, &k_start_ghost_c, &m_ghost_… in DMCreateInjection_DA_3D()
1224 PetscCall(DMGetLocalToGlobalMapping(dac, &ltog_c)); in DMCreateInjection_DA_3D()
1255 PetscCall(DMGetGlobalVector(dac, &vecc)); in DMCreateInjection_DA_3D()
1258 PetscCall(DMRestoreGlobalVector(dac, &vecc)); in DMCreateInjection_DA_3D()
1264 PetscErrorCode DMCreateInjection_DA(DM dac, DM daf, Mat *mat) in DMCreateInjection_DA() argument
1272 PetscValidHeaderSpecific(dac, DM_CLASSID, 1); in DMCreateInjection_DA()
1276 …PetscCall(DMDAGetInfo(dac, &dimc, &Mc, &Nc, &Pc, &mc, &nc, &pc, &dofc, &sc, &bxc, &byc, &bzc, &stc… in DMCreateInjection_DA()
1288 PetscCall(DMCreateInjection_DA_1D(dac, daf, &inject)); in DMCreateInjection_DA()
1290 PetscCall(DMCreateInjection_DA_2D(dac, daf, &inject)); in DMCreateInjection_DA()
1292 PetscCall(DMCreateInjection_DA_3D(dac, daf, &inject)); in DMCreateInjection_DA()
1305 PetscErrorCode DMCreateAggregates(DM dac, DM daf, Mat *mat) in DMCreateAggregates() argument
1307 return DMDACreateAggregates(dac, daf, mat); in DMCreateAggregates()
1332 PetscErrorCode DMDACreateAggregates(DM dac, DM daf, Mat *rest) in DMDACreateAggregates() argument
1355 PetscValidHeaderSpecificType(dac, DM_CLASSID, 1, DMDA); in DMDACreateAggregates()
1359 …PetscCall(DMDAGetInfo(dac, &dimc, &Mc, &Nc, &Pc, &mc, &nc, &pc, &dofc, &sc, &bxc, &byc, &bzc, &stc… in DMDACreateAggregates()
1382 PetscCall(DMDAGetCorners(dac, &i_start_c, &j_start_c, &l_start_c, &m_c, &n_c, &p_c)); in DMDACreateAggregates()
1383 …PetscCall(DMDAGetGhostCorners(dac, &i_start_ghost_c, &j_start_ghost_c, &l_start_ghost_c, &m_ghost_… in DMDACreateAggregates()
1385 PetscCall(DMGetLocalToGlobalMapping(dac, &ltogmc)); in DMDACreateAggregates()