Lines Matching refs:G_loc
57 static PetscErrorCode Surface_Forces_NS(DM dm, Vec G_loc, PetscInt num_walls, const PetscInt walls[… in Surface_Forces_NS() argument
68 PetscCall(VecGetArrayRead(G_loc, &g)); in Surface_Forces_NS()
98 PetscCall(VecRestoreArrayRead(G_loc, &g)); in Surface_Forces_NS()
107 Vec Q_loc = user->Q_loc, Q_dot_loc = user->Q_dot_loc, G_loc; in IFunction_NS() local
112 PetscCall(DMGetNamedLocalVector(user->dm, "ResidualLocal", &G_loc)); in IFunction_NS()
129 PetscCall(VecPetscToCeed(G_loc, &g_mem_type, user->g_ceed)); in IFunction_NS()
141 PetscCall(VecCeedToPetsc(user->g_ceed, g_mem_type, G_loc)); in IFunction_NS()
145 PetscCall(DMLocalToGlobal(user->dm, G_loc, ADD_VALUES, G)); in IFunction_NS()
148 PetscCall(DMRestoreNamedLocalVector(user->dm, "ResidualLocal", &G_loc)); in IFunction_NS()
243 Vec G_loc; in TSMonitor_WallForce() local
253 PetscCall(DMGetNamedLocalVector(user->dm, "ResidualLocal", &G_loc)); in TSMonitor_WallForce()
255 PetscCall(Surface_Forces_NS(user->dm, G_loc, num_wall, walls, reaction_force)); in TSMonitor_WallForce()
256 PetscCall(DMRestoreNamedLocalVector(user->dm, "ResidualLocal", &G_loc)); in TSMonitor_WallForce()