Lines Matching refs:Q

30 PetscErrorCode RHS_NS(TS ts, PetscReal t, Vec Q, Vec G, void *user_data) {  in RHS_NS()  argument
47 PetscCall(DMGlobalToLocal(honee->dm, Q, INSERT_VALUES, Q_loc)); in RHS_NS()
116 PetscErrorCode IFunction_NS(TS ts, PetscReal t, Vec Q, Vec Q_dot, Vec G, void *user_data) { in IFunction_NS() argument
134 PetscCall(DMGlobalToLocalBegin(honee->dm, Q, INSERT_VALUES, Q_loc)); in IFunction_NS()
135 PetscCall(DMGlobalToLocalEnd(honee->dm, Q, INSERT_VALUES, Q_loc)); in IFunction_NS()
145 PetscCall(PetscLogEventBegin(HONEE_CeedOperatorApply, Q, G, 0, 0)); in IFunction_NS()
149 PetscCall(PetscLogEventEnd(HONEE_CeedOperatorApply, Q, G, 0, 0)); in IFunction_NS()
169 PetscErrorCode FormIJacobian_NS(TS ts, PetscReal t, Vec Q, Vec Q_dot, PetscReal shift, Mat J, Mat J… in FormIJacobian_NS() argument
195 PetscErrorCode WriteOutput(Honee honee, Vec Q, PetscInt step_no, PetscScalar time) { in WriteOutput() argument
206 PetscCall(DMGlobalToLocal(honee->dm, Q, INSERT_VALUES, Q_loc)); in WriteOutput()
211 …PetscCall(PetscViewerVTKOpen(PetscObjectComm((PetscObject)Q), file_path, FILE_MODE_WRITE, &viewer)… in WriteOutput()
223 PetscCall(MatInterpolate(honee->interp_viz, Q, Q_refined)); in WriteOutput()
248 PetscCall(HoneeWriteBinaryVec(viewer, Q, time, step_no)); in WriteOutput()
254 PetscErrorCode TSMonitor_WallForce(TS ts, PetscInt step_no, PetscReal time, Vec Q, void *ctx) { in TSMonitor_WallForce() argument
295 PetscErrorCode TSMonitor_NS(TS ts, PetscInt step_no, PetscReal time, Vec Q, void *ctx) { in TSMonitor_NS() argument
305 PetscCall(WriteOutput(honee, Q, step_no, time)); in TSMonitor_NS()
313 Vec Q; in TSPostStep_CheckStep() local
318 PetscCall(TSGetSolution(ts, &Q)); in TSPostStep_CheckStep()
320 PetscCall(VecNorm(Q, NORM_1, &norm)); in TSPostStep_CheckStep()
410 …(DM dm, Honee honee, AppCtx app_ctx, Physics phys, ProblemData problem, Vec Q, PetscScalar *f_time… in TSSolve_NS() argument
516 PetscCall(VecDuplicate(Q, &Q_preload)); in TSSolve_NS()
517 PetscCall(VecCopy(Q, Q_preload)); in TSSolve_NS()
532 PetscCall(TSSolve(*ts, Q)); in TSSolve_NS()
546 PetscCall(WriteOutput(honee, Q, step_no, final_time)); in TSSolve_NS()