Lines Matching refs:stepnum
52 PetscErrorCode TSTrajectorySet(TSTrajectory tj, TS ts, PetscInt stepnum, PetscReal time, Vec X) in TSTrajectorySet() argument
58 PetscValidLogicalCollectiveInt(tj, stepnum, 3); in TSTrajectorySet()
62 …rySet: stepnum %" PetscInt_FMT ", time %g (stages %" PetscInt_FMT ")\n", stepnum, (double)time, (P… in TSTrajectorySet()
64 PetscUseTypeMethod(tj, set, ts, stepnum, time, X); in TSTrajectorySet()
66 if (tj->usehistory) PetscCall(TSHistoryUpdate(tj->tsh, stepnum, time)); in TSTrajectorySet()
115 PetscErrorCode TSTrajectoryGet(TSTrajectory tj, TS ts, PetscInt stepnum, PetscReal *time) in TSTrajectoryGet() argument
121 PetscValidLogicalCollectiveInt(tj, stepnum, 3); in TSTrajectoryGet()
124 …PetscCheck(stepnum >= 0, PetscObjectComm((PetscObject)tj), PETSC_ERR_PLIB, "Requesting negative st… in TSTrajectoryGet()
126 …TSTrajectoryGet: stepnum %" PetscInt_FMT ", stages %" PetscInt_FMT "\n", stepnum, (PetscInt)!tj->s… in TSTrajectoryGet()
130 PetscUseTypeMethod(tj, get, ts, stepnum, time); in TSTrajectoryGet()
158 PetscErrorCode TSTrajectoryGetVecs(TSTrajectory tj, TS ts, PetscInt stepnum, PetscReal *time, Vec U… in TSTrajectoryGetVecs() argument
164 PetscValidLogicalCollectiveInt(tj, stepnum, 3); in TSTrajectoryGetVecs()
175 …MT " %" PetscInt_FMT ": stepnum %" PetscInt_FMT ", time %g\n", pU, pUdot, stepnum, (double)*time)); in TSTrajectoryGetVecs()
184 if (stepnum == PETSC_DECIDE) { in TSTrajectoryGetVecs()
187 …if (id == tj->lag.Ucached.id && stepnum == tj->lag.Ucached.step && state == tj->lag.Ucached.state)… in TSTrajectoryGetVecs()
202 if (stepnum == PETSC_DECIDE) { in TSTrajectoryGetVecs()
205 …if (id == tj->lag.Udotcached.id && stepnum == tj->lag.Udotcached.step && state == tj->lag.Udotcach… in TSTrajectoryGetVecs()
219 if (stepnum == PETSC_DECIDE || Udot) { /* reverse search for requested time in TSHistory */ in TSTrajectoryGetVecs()
243 PetscCall(TSTrajectoryGet(tj, fakets, stepnum, time)); in TSTrajectoryGetVecs()
249 tj->lag.Ucached.step = stepnum; in TSTrajectoryGetVecs()