Lines Matching refs:Z
13 Vec Z; /* For shift*(Y-Z) */ member
46 Vec Y = ext->Y, Z = ext->Z; in TSStage_EIMEX() local
61 PetscCall(VecCopy(Y, Z)); /* Save the solution of the previous substep */ in TSStage_EIMEX()
183 PetscCall(VecDestroy(&ext->Z)); in TSReset_EIMEX()
203 static PetscErrorCode TSEIMEXGetVecs(TS ts, DM dm, Vec *Z, Vec *Ydot, Vec *YdotI, Vec *YdotRHS) in TSEIMEXGetVecs() argument
208 if (Z) { in TSEIMEXGetVecs()
209 if (dm && dm != ts->dm) PetscCall(DMGetNamedGlobalVector(dm, "TSEIMEX_Z", Z)); in TSEIMEXGetVecs()
210 else *Z = ext->Z; in TSEIMEXGetVecs()
227 static PetscErrorCode TSEIMEXRestoreVecs(TS ts, DM dm, Vec *Z, Vec *Ydot, Vec *YdotI, Vec *YdotRHS) in TSEIMEXRestoreVecs() argument
230 if (Z) { in TSEIMEXRestoreVecs()
231 if (dm && dm != ts->dm) PetscCall(DMRestoreNamedGlobalVector(dm, "TSEIMEX_Z", Z)); in TSEIMEXRestoreVecs()
254 Vec Ydot, Z; in SNESTSFormFunction_EIMEX() local
261 PetscCall(TSEIMEXGetVecs(ts, dm, &Z, &Ydot, NULL, NULL)); in SNESTSFormFunction_EIMEX()
269 PetscCall(TSEIMEXRestoreVecs(ts, dm, &Z, &Ydot, NULL, NULL)); in SNESTSFormFunction_EIMEX()
304 Vec Z, Z_c; in DMRestrictHook_TSEIMEX() local
307 PetscCall(TSEIMEXGetVecs(ts, fine, &Z, NULL, NULL, NULL)); in DMRestrictHook_TSEIMEX()
309 PetscCall(MatRestrict(restrct, Z, Z_c)); in DMRestrictHook_TSEIMEX()
311 PetscCall(TSEIMEXRestoreVecs(ts, fine, &Z, NULL, NULL, NULL)); in DMRestrictHook_TSEIMEX()
346 PetscCall(VecDuplicate(ts->vec_sol, &ext->Z)); in TSSetUp_EIMEX()