Lines Matching refs:dm

41   PetscCall(DMClone(honee->dm, &projection->dm));  in DivDiffFluxProjectionCreate()
42 PetscCall(DMSetMatrixPreallocateSkip(projection->dm, PETSC_TRUE)); in DivDiffFluxProjectionCreate()
43 PetscCall(DMGetDimension(projection->dm, &dim)); in DivDiffFluxProjectionCreate()
47 PetscCall(PetscObjectSetName((PetscObject)projection->dm, "DivDiffFluxProj")); in DivDiffFluxProjectionCreate()
48 …ByOrder_FEM(PETSC_TRUE, PETSC_TRUE, degree, 1, q_extra, 1, &projection->num_comp, projection->dm)); in DivDiffFluxProjectionCreate()
50 …PetscCall(DMPlexCeedElemRestrictionCreate(honee->ceed, projection->dm, DMLABEL_DEFAULT, DMLABEL_DE… in DivDiffFluxProjectionCreate()
54 …PetscCall(DMPlexCeedBasisCreate(honee->ceed, projection->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALU… in DivDiffFluxProjectionCreate()
62 PetscCall(DMGetLabel(honee->dm, "Face Sets", &face_sets_label)); in DivDiffFluxProjectionCreate()
63 …PetscCall(DMLabelCreateGlobalValueArray(honee->dm, face_sets_label, &num_face_set_values, &face_se… in DivDiffFluxProjectionCreate()
68 … PetscCall(DMPlexCreateFaceLabel(honee->dm, face_set_values[f], &face_orientation_label_name)); in DivDiffFluxProjectionCreate()
69 PetscCall(DMGetLabel(honee->dm, face_orientation_label_name, &face_orientation_label)); in DivDiffFluxProjectionCreate()
70 PetscCall(DMAddLabel(projection->dm, face_orientation_label)); in DivDiffFluxProjectionCreate()
78 PetscCall(PetscObjectSetName((PetscObject)projection->dm, "DiffFluxProj")); in DivDiffFluxProjectionCreate()
79 …ByOrder_FEM(PETSC_TRUE, PETSC_TRUE, degree, 1, q_extra, 1, &projection->num_comp, projection->dm)); in DivDiffFluxProjectionCreate()
81 …PetscCall(DMPlexCeedElemRestrictionQDataCreate(honee->ceed, projection->dm, DMLABEL_DEFAULT, DMLAB… in DivDiffFluxProjectionCreate()
127 MPI_Comm comm = PetscObjectComm((PetscObject)projection->dm); in DivDiffFluxProjectionSetup_Direct()
136 PetscCall(DMCreateLocalVector(projection->dm, &diff_flux_proj->DivDiffFlux_loc)); in DivDiffFluxProjectionSetup_Direct()
138 …PetscCall(OperatorApplyContextCreate(honee->dm, projection->dm, ceed, op_rhs, NULL, NULL, NULL, di… in DivDiffFluxProjectionSetup_Direct()
152 …PetscCall(QDataGet(ceed, projection->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_qd, &… in DivDiffFluxProjectionSetup_Direct()
163 PetscCall(MatCreateCeed(projection->dm, projection->dm, op_mass, NULL, &mat_mass)); in DivDiffFluxProjectionSetup_Direct()
201 MPI_Comm comm = PetscObjectComm((PetscObject)projection->dm); in DivDiffFluxProjectionSetup_Indirect()
207 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, projection->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_V… in DivDiffFluxProjectionSetup_Indirect()
208 …PetscCall(DMPlexCeedBasisCreate(ceed, projection->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, heig… in DivDiffFluxProjectionSetup_Indirect()
209 …PetscCall(QDataGet(ceed, projection->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_qd, &… in DivDiffFluxProjectionSetup_Indirect()
218 …PetscCall(OperatorApplyContextCreate(honee->dm, projection->dm, ceed, op_rhs, NULL, NULL, NULL, NU… in DivDiffFluxProjectionSetup_Indirect()
235 PetscCall(MatCreateCeed(projection->dm, projection->dm, op_mass, NULL, &mat_mass)); in DivDiffFluxProjectionSetup_Indirect()
259 PetscCall(DMGetDimension(projection->dm, &dim)); in DivDiffFluxProjectionSetup_Indirect()
300 …PetscCall(OperatorApplyContextCreate(projection->dm, NULL, ceed, op_calc_divergence, NULL, CEED_VE… in DivDiffFluxProjectionSetup_Indirect()
330 …SETERRQ(PetscObjectComm((PetscObject)honee->dm), PETSC_ERR_ARG_WRONG, "Should not reach here with … in DivDiffFluxProjectionSetup()
354 PetscCall(DMGetGlobalVector(projection->dm, &DivDiffFlux)); in DivDiffFluxProjectionApply()
355 PetscCall(DMGetGlobalVector(projection->dm, &RHS)); in DivDiffFluxProjectionApply()
377 …PetscCall(DMGlobalToLocal(projection->dm, DivDiffFlux, INSERT_VALUES, diff_flux_proj->DivDiffFlux_… in DivDiffFluxProjectionApply()
381 PetscCall(DMRestoreGlobalVector(projection->dm, &RHS)); in DivDiffFluxProjectionApply()
382 PetscCall(DMRestoreGlobalVector(projection->dm, &DivDiffFlux)); in DivDiffFluxProjectionApply()
388 PetscCall(DMGetGlobalVector(projection->dm, &DiffFlux)); in DivDiffFluxProjectionApply()
389 PetscCall(DMGetGlobalVector(projection->dm, &RHS)); in DivDiffFluxProjectionApply()
408 PetscCall(DMRestoreGlobalVector(projection->dm, &RHS)); in DivDiffFluxProjectionApply()
409 PetscCall(DMRestoreGlobalVector(projection->dm, &DiffFlux)); in DivDiffFluxProjectionApply()
412 …SETERRQ(PetscObjectComm((PetscObject)projection->dm), PETSC_ERR_ARG_WRONG, "Should not reach here … in DivDiffFluxProjectionApply()