Lines Matching refs:dm

19 PetscErrorCode ICs_FixMultiplicity(DM dm, CeedData ceed_data, User user, Vec Q_loc, Vec Q, CeedScal…  in ICs_FixMultiplicity()  argument
32 PetscCall(DMGetLocalVector(dm, &Multiplicity_loc)); in ICs_FixMultiplicity()
37 PetscCall(DMGetGlobalVector(dm, &Multiplicity)); in ICs_FixMultiplicity()
39 PetscCall(DMLocalToGlobal(dm, Multiplicity_loc, ADD_VALUES, Multiplicity)); in ICs_FixMultiplicity()
45 PetscCall(DMRestoreLocalVector(dm, &Multiplicity_loc)); in ICs_FixMultiplicity()
46 PetscCall(DMRestoreGlobalVector(dm, &Multiplicity)); in ICs_FixMultiplicity()
52 PetscErrorCode SetBCsFromICs(DM dm, Vec Q, Vec Q_loc) { in SetBCsFromICs() argument
57 PetscCall(DMGetNamedLocalVector(dm, "Qbc", &Qbc)); in SetBCsFromICs()
60 PetscCall(DMGlobalToLocal(dm, Q, INSERT_VALUES, Q_loc)); in SetBCsFromICs()
62 PetscCall(DMRestoreNamedLocalVector(dm, "Qbc", &Qbc)); in SetBCsFromICs()
64 …PetscCall(PetscObjectComposeFunction((PetscObject)dm, "DMPlexInsertBoundaryValues_C", DMPlexInsert… in SetBCsFromICs()
69 PetscCall(DMGetNamedLocalVector(dm, "boundary mask", &boundary_mask)); in SetBCsFromICs()
70 PetscCall(DMGetGlobalVector(dm, &ones)); in SetBCsFromICs()
73 PetscCall(DMGlobalToLocal(dm, ones, INSERT_VALUES, boundary_mask)); in SetBCsFromICs()
74 PetscCall(DMRestoreNamedLocalVector(dm, "boundary mask", &boundary_mask)); in SetBCsFromICs()
75 PetscCall(DMRestoreGlobalVector(dm, &ones)); in SetBCsFromICs()
80 PetscErrorCode DMPlexInsertBoundaryValues_FromICs(DM dm, PetscBool insert_essential, Vec Q_loc, Pet… in DMPlexInsertBoundaryValues_FromICs() argument
86 PetscCall(DMGetNamedLocalVector(dm, "boundary mask", &boundary_mask)); in DMPlexInsertBoundaryValues_FromICs()
88 PetscCall(DMRestoreNamedLocalVector(dm, "boundary mask", &boundary_mask)); in DMPlexInsertBoundaryValues_FromICs()
90 PetscCall(DMGetNamedLocalVector(dm, "Qbc", &Qbc)); in DMPlexInsertBoundaryValues_FromICs()
92 PetscCall(DMRestoreNamedLocalVector(dm, "Qbc", &Qbc)); in DMPlexInsertBoundaryValues_FromICs()
176 PetscErrorCode PrintError(CeedData ceed_data, DM dm, User user, Vec Q, PetscScalar final_time) { in PrintError() argument
183 PetscCall(DMGetGlobalVector(dm, &Q_exact)); in PrintError()
184 PetscCall(DMGetLocalVector(dm, &Q_exact_loc)); in PrintError()
186 PetscCall(ICs_FixMultiplicity(dm, ceed_data, user, Q_exact_loc, Q_exact, final_time)); in PrintError()
195 PetscCall(DMRestoreLocalVector(dm, &Q_exact_loc)); in PrintError()
196 PetscCall(DMRestoreGlobalVector(dm, &Q_exact)); in PrintError()
201 PetscErrorCode PostProcess(TS ts, CeedData ceed_data, DM dm, ProblemData problem, User user, Vec Q,… in PostProcess() argument
208 PetscCall(PrintError(ceed_data, dm, user, Q, final_time)); in PostProcess()
284 PetscCall(DMDestroy(&context->dm)); in NodalProjectionDataDestroy()
408 PetscCall(DMGetVecType(user->dm, &vec_type)); in PrintRunInfo()
453 PetscCall(DMGetGlobalVectorInfo(user->dm, &owned_dofs, &glob_dofs, NULL)); in PrintRunInfo()
454 PetscCall(DMGetLocalVectorInfo(user->dm, &local_dofs, NULL, NULL)); in PrintRunInfo()
505 PetscCall(DMGetSectionSF(user->dm, &sf)); in PrintRunInfo()