Lines Matching refs:Q_loc
19 PetscErrorCode UpdateBoundaryValues(User user, Vec Q_loc, PetscReal t) { in UpdateBoundaryValues() argument
22 PetscCall(DMPlexInsertBoundaryValues(user->dm, PETSC_TRUE, Q_loc, t, NULL, NULL, NULL)); in UpdateBoundaryValues()
35 Vec Q_loc = user->Q_loc; in RHS_NS() local
40 PetscCall(UpdateBoundaryValues(user, Q_loc, t)); in RHS_NS()
47 PetscCall(VecReadPetscToCeed(Q_loc, &q_mem_type, user->q_ceed)); in RHS_NS()
52 PetscCall(VecReadCeedToPetsc(user->q_ceed, q_mem_type, Q_loc)); in RHS_NS()
107 Vec Q_loc = user->Q_loc, Q_dot_loc = user->Q_dot_loc, G_loc; in IFunction_NS() local
115 PetscCall(UpdateBoundaryValues(user, Q_loc, t)); in IFunction_NS()
121 PetscCall(DMGlobalToLocalBegin(user->dm, Q, INSERT_VALUES, Q_loc)); in IFunction_NS()
123 PetscCall(DMGlobalToLocalEnd(user->dm, Q, INSERT_VALUES, Q_loc)); in IFunction_NS()
127 PetscCall(VecReadPetscToCeed(Q_loc, &q_mem_type, user->q_ceed)); in IFunction_NS()
139 PetscCall(VecReadCeedToPetsc(user->q_ceed, q_mem_type, Q_loc)); in IFunction_NS()
179 Vec Q_loc; in WriteOutput() local
186 PetscCall(DMGetLocalVector(user->dm, &Q_loc)); in WriteOutput()
187 PetscCall(PetscObjectSetName((PetscObject)Q_loc, "StateVec")); in WriteOutput()
188 PetscCall(VecZeroEntries(Q_loc)); in WriteOutput()
189 PetscCall(DMGlobalToLocal(user->dm, Q, INSERT_VALUES, Q_loc)); in WriteOutput()
195 PetscCall(VecView(Q_loc, viewer)); in WriteOutput()
219 PetscCall(DMRestoreLocalVector(user->dm, &Q_loc)); in WriteOutput()