Lines Matching full:g
29 // This is the RHS of the ODE, given as u_t = G(t,u)
30 // This function takes in a state vector Q and writes into G
31 PetscErrorCode RHS_NS(TS ts, PetscReal t, Vec Q, Vec G, void *user_data) { in RHS_NS() argument
45 PetscCall(ApplyCeedOperatorGlobalToGlobal(Q, G, user->op_rhs_ctx)); in RHS_NS()
50 PetscCall(KSPSolve(user->mass_ksp, G, G)); in RHS_NS()
59 const PetscScalar *g; in Surface_Forces_NS() local
68 PetscCall(VecGetArrayRead(G_loc, &g)); in Surface_Forces_NS()
84 PetscCall(DMPlexPointLocalRead(dm, p, g, &r)); in Surface_Forces_NS()
98 PetscCall(VecRestoreArrayRead(G_loc, &g)); in Surface_Forces_NS()
103 PetscErrorCode IFunction_NS(TS ts, PetscReal t, Vec Q, Vec Q_dot, Vec G, void *user_data) { in IFunction_NS() argument
132 PetscCall(PetscLogEventBegin(FLUIDS_CeedOperatorApply, Q, G, 0, 0)); in IFunction_NS()
136 PetscCall(PetscLogEventEnd(FLUIDS_CeedOperatorApply, Q, G, 0, 0)); in IFunction_NS()
144 PetscCall(VecZeroEntries(G)); in IFunction_NS()
145 PetscCall(DMLocalToGlobal(user->dm, G_loc, ADD_VALUES, G)); in IFunction_NS()
268 …PetscCall(PetscViewerASCIIPrintf(viewer, "%" PetscInt_FMT ",%g,%" PetscInt_FMT ",%g,%g,%g\n", step… in TSMonitor_WallForce()
272 …Printf(viewer, "Wall %" PetscInt_FMT " Forces: Force_x = %12g, Force_y = %12g, Force_z = %12g\n", … in TSMonitor_WallForce()
419 … PetscCall(PetscPrintf(PETSC_COMM_WORLD, "Time taken for solution (sec): %g\n", stage_perf.time)); in TSSolve_NS()