29 #ifndef Rythmos_IMPLICITBDF_STEPPER_RAMPING_STEP_CONTROL_DEF_H 30 #define Rythmos_IMPLICITBDF_STEPPER_RAMPING_STEP_CONTROL_DEF_H 32 #include "Rythmos_ImplicitBDFStepper.hpp" 33 #include "Rythmos_ImplicitBDFStepperErrWtVecCalc.hpp" 34 #include "Teuchos_StandardParameterEntryValidators.hpp" 38 template<
class Scalar>
39 ImplicitBDFStepperRampingStepControl<Scalar>::
40 ImplicitBDFStepperRampingStepControl() :
41 stepControlState_(UNINITIALIZED)
46 template<
class Scalar>
47 void ImplicitBDFStepperRampingStepControl<Scalar>::setStepControlState_(StepControlStrategyState newState)
49 if (stepControlState_ == UNINITIALIZED) {
50 TEUCHOS_TEST_FOR_EXCEPT(newState != BEFORE_FIRST_STEP);
51 }
else if (stepControlState_ == BEFORE_FIRST_STEP) {
52 TEUCHOS_TEST_FOR_EXCEPT(newState != MID_STEP);
53 }
else if (stepControlState_ == MID_STEP) {
54 TEUCHOS_TEST_FOR_EXCEPT(newState != AFTER_CORRECTION);
55 }
else if (stepControlState_ == AFTER_CORRECTION) {
56 TEUCHOS_TEST_FOR_EXCEPT(newState != READY_FOR_NEXT_STEP);
57 }
else if (stepControlState_ == READY_FOR_NEXT_STEP) {
58 TEUCHOS_TEST_FOR_EXCEPT(newState != MID_STEP);
60 stepControlState_ = newState;
63 template<
class Scalar>
66 return(stepControlState_);
69 template<
class Scalar>
72 TEUCHOS_TEST_FOR_EXCEPT(!((stepControlState_ == BEFORE_FIRST_STEP) || (stepControlState_ == READY_FOR_NEXT_STEP)));
74 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"updateCoeffs_() is not implemented!");
77 template<
class Scalar>
82 typedef Teuchos::ScalarTraits<Scalar> ST;
83 using Thyra::createMember;
87 TEUCHOS_TEST_FOR_EXCEPTION(
90 "Error, Stepper does not have valid time range for initialization of ImplicitBDFStepperRampingStepControl!\n" 93 if (is_null(parameterList_)) {
94 RCP<Teuchos::ParameterList> emptyParameterList = Teuchos::rcp(
new Teuchos::ParameterList);
98 if (is_null(errWtVecCalc_)) {
99 RCP<ImplicitBDFStepperErrWtVecCalc<Scalar> > IBDFErrWtVecCalc = rcp(
new ImplicitBDFStepperErrWtVecCalc<Scalar>());
100 errWtVecCalc_ = IBDFErrWtVecCalc;
103 stepControlState_ = UNINITIALIZED;
105 requestedStepSize_ = Scalar(-1.0);
106 currentStepSize_ = initialStepSize_;
108 nextStepSize_ = initialStepSize_;
111 totalNumberOfFailedSteps_ = 0;
112 countOfConstantStepsAfterFailure_ = 0;
114 if (is_null(delta_)) {
117 if (is_null(errWtVec_)) {
120 V_S(delta_.ptr(),ST::zero());
122 if ( doOutput_(Teuchos::VERB_HIGH) ) {
123 RCP<Teuchos::FancyOStream> out = this->getOStream();
124 Teuchos::OSTab ostab(out,1,
"initialize");
125 *out <<
"currentOrder_ = " << currentOrder_ << std::endl;
126 *out <<
"numberOfSteps_ = " << numberOfSteps_ << std::endl;
129 setStepControlState_(BEFORE_FIRST_STEP);
133 template<
class Scalar>
136 ,
const Scalar& stepSize
137 ,
const StepSizeType& stepSizeType
140 typedef Teuchos::ScalarTraits<Scalar> ST;
142 TEUCHOS_TEST_FOR_EXCEPT(!((stepControlState_ == UNINITIALIZED) ||
143 (stepControlState_ == BEFORE_FIRST_STEP) ||
144 (stepControlState_ == READY_FOR_NEXT_STEP) ||
145 (stepControlState_ == MID_STEP)));
147 TEUCHOS_TEST_FOR_EXCEPTION(
148 ((stepSizeType == STEP_TYPE_FIXED) && (stepSize == ST::zero())),
150 "Error, step size type == STEP_TYPE_FIXED, but requested step size == 0!\n" 153 bool didInitialization =
false;
154 if (stepControlState_ == UNINITIALIZED) {
156 didInitialization =
true;
160 if (!didInitialization) {
162 const Thyra::VectorBase<Scalar>& xHistory = implicitBDFStepper.
getxHistory(0);
163 errWtVecCalc_->errWtVecSet(&*errWtVec_,xHistory,relErrTol_,absErrTol_);
166 requestedStepSize_ = stepSize;
167 stepSizeType_ = stepSizeType;
170 template<
class Scalar>
173 TEUCHOS_TEST_FOR_EXCEPT(!((stepControlState_ == BEFORE_FIRST_STEP) ||
174 (stepControlState_ == MID_STEP) ||
175 (stepControlState_ == READY_FOR_NEXT_STEP) )
178 if (stepControlState_ == BEFORE_FIRST_STEP) {
179 nextStepSize_ = initialStepSize_;
184 if (stepSizeType_ == STEP_TYPE_FIXED)
185 currentStepSize_ = requestedStepSize_;
187 currentStepSize_ = nextStepSize_;
189 currentOrder_ = nextOrder_;
192 currentStepSize_ = std::min(requestedStepSize_, currentStepSize_);
194 *stepSize = currentStepSize_;
195 *stepSizeType = stepSizeType_;
196 *order = currentOrder_;
198 if (stepControlState_ != MID_STEP) {
199 setStepControlState_(MID_STEP);
203 if (doOutput_(Teuchos::VERB_MEDIUM)){
204 Teuchos::FancyOStream& out = *this->getOStream();
205 Teuchos::OSTab ostab1(out,2,
"** nextStepSize_ **");
206 out <<
"Values returned to stepper:" << std::endl;
207 Teuchos::OSTab ostab2(out,2,
"** nextStepSize_ **");
208 out <<
"currentStepSize_ = " << currentStepSize_ << std::endl;
209 out <<
"currentOrder_ = " << currentOrder_ << std::endl;
210 out <<
"requestedStepSize_ = " << requestedStepSize_ << std::endl;
215 template<
class Scalar>
218 ,
const RCP<
const Thyra::VectorBase<Scalar> >& soln
219 ,
const RCP<
const Thyra::VectorBase<Scalar> >& ee
222 TEUCHOS_TEST_FOR_EXCEPT(stepControlState_ != MID_STEP);
224 TEUCHOS_TEST_FOR_EXCEPTION(is_null(ee), std::logic_error,
"Error, ee == Teuchos::null!\n");
228 newtonConvergenceStatus_ = solveStatus;
230 if ( doOutput_(Teuchos::VERB_MEDIUM) && newtonConvergenceStatus_ < 0) {
231 RCP<Teuchos::FancyOStream> out = this->getOStream();
232 Teuchos::OSTab ostab(out,1,
"setCorrection");
233 *out <<
"\nImplicitBDFStepperRampingStepControl::setCorrection(): Nonlinear Solver Failed!\n";
236 setStepControlState_(AFTER_CORRECTION);
239 template<
class Scalar>
243 typedef Teuchos::ScalarTraits<Scalar> ST;
245 TEUCHOS_TEST_FOR_EXCEPT(stepControlState_ != AFTER_CORRECTION);
248 if ( doOutput_(Teuchos::VERB_HIGH) ) {
249 RCP<Teuchos::FancyOStream> out = this->getOStream();
250 Teuchos::EVerbosityLevel verbLevel = this->getVerbLevel();
251 Teuchos::OSTab ostab(out,1,
"acceptStep");
252 *out <<
"ee_ = " << std::endl;
253 ee_->describe(*out,verbLevel);
254 *out <<
"errWtVec_ = " << std::endl;
255 errWtVec_->describe(*out,verbLevel);
258 Scalar enorm = wRMSNorm_(*errWtVec_,*ee_);
260 Scalar LET = ck_ * enorm;
264 *LETValue = Scalar(0.0);
267 if (newtonConvergenceStatus_ < 0)
270 bool return_status =
false;
272 if (LET < ST::one() || !useLETToDetermineConvergence_)
273 return_status =
true;
275 if ( doOutput_(Teuchos::VERB_HIGH) ) {
276 RCP<Teuchos::FancyOStream> out = this->getOStream();
277 Teuchos::OSTab ostab(out,1,
"acceptStep");
278 *out <<
"return_status = " << return_status << std::endl;
279 *out <<
"Local Truncation Error Check: (ck*enorm) < 1: (" << LET <<
") <?= 1" << std::endl;
280 if ( doOutput_(Teuchos::VERB_EXTREME) ) {
281 *out <<
"ck_ = " << ck_ << std::endl;
282 *out <<
"enorm = " << enorm << std::endl;
286 return(return_status);
289 template<
class Scalar>
292 TEUCHOS_TEST_FOR_EXCEPT(stepControlState_ != AFTER_CORRECTION);
294 typedef Teuchos::ScalarTraits<Scalar> ST;
296 if ( doOutput_(Teuchos::VERB_HIGH) ) {
297 RCP<Teuchos::FancyOStream> out = this->getOStream();
299 Teuchos::OSTab ostab1(out,2,
"completeStep_");
300 *out <<
"\n** Begin completeStep() **" << std::endl;
301 Teuchos::OSTab ostab2(out,2,
"** Begin completeStep_ **");
302 *out <<
"numberOfSteps_ = " << numberOfSteps_ << std::endl;
303 *out <<
"numConstantSteps_ = " << numConstantSteps_ << std::endl;
304 *out <<
"currentStepSize_ = " << currentStepSize_ << std::endl;
305 *out <<
"nextStepSize_ = " << nextStepSize_ << std::endl;
306 *out <<
"currentOrder_ = " << currentOrder_ << std::endl;
307 *out <<
"nextOrder_ = " << nextOrder_ << std::endl;
308 *out <<
"stepSizeIncreaseFactor_ = " << stepSizeIncreaseFactor_ << std::endl;
309 *out <<
"countOfConstantStepsAfterFailure_ = " << countOfConstantStepsAfterFailure_ << std::endl;
314 if (countOfConstantStepsAfterFailure_ > 0) {
321 nextStepSize_ = currentStepSize_;
322 nextOrder_ = currentOrder_;
325 countOfConstantStepsAfterFailure_ =
326 std::max( (countOfConstantStepsAfterFailure_ - 1), 0);
328 if ( doOutput_(Teuchos::VERB_HIGH) ) {
329 RCP<Teuchos::FancyOStream> out = this->getOStream();
330 Teuchos::OSTab ostab(out,1,
"completeStep_");
331 *out <<
"\nNext Step Size held constant due to previous failed steps!\n";
332 *out <<
"countOfConstantStepsAfterFailure_ = " << countOfConstantStepsAfterFailure_ << std::endl;
339 if (numberOfSteps_ < numConstantSteps_) {
340 if (currentStepSize_ < initialStepSize_)
341 nextStepSize_ = std::min(initialStepSize_, currentStepSize_ * stepSizeIncreaseFactor_);
346 else if (currentOrder_ < maxOrder_) {
347 if (currentStepSize_ < initialStepSize_)
348 nextStepSize_ = std::min(initialStepSize_, currentStepSize_ * stepSizeIncreaseFactor_);
350 nextStepSize_ = currentStepSize_;
352 nextOrder_ = currentOrder_ + 1;
355 else if ((numberOfSteps_ >= numConstantSteps_) && (currentOrder_ == maxOrder_)) {
356 nextStepSize_ = std::min(maxStepSize_, currentStepSize_ * stepSizeIncreaseFactor_);
357 nextOrder_ = maxOrder_;
360 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
361 "RampingStepControlStrategy logic is broken. Please contact evelopers. Aborting run!");
366 setStepControlState_(READY_FOR_NEXT_STEP);
368 if ( doOutput_(Teuchos::VERB_HIGH) ) {
369 RCP<Teuchos::FancyOStream> out = this->getOStream();
370 Teuchos::OSTab ostab1(out,2,
"** completeStep_ **");
371 *out <<
"** End of completeStep() **" << std::endl;
372 Teuchos::OSTab ostab2(out,2,
"** End completeStep_ **");
373 *out <<
"numberOfSteps_ = " << numberOfSteps_ << std::endl;
374 *out <<
"numConstantSteps_ = " << numConstantSteps_ << std::endl;
375 *out <<
"currentStepSize_ = " << currentStepSize_ << std::endl;
376 *out <<
"nextStepSize_ = " << nextStepSize_ << std::endl;
377 *out <<
"currentOrder_ = " << currentOrder_ << std::endl;
378 *out <<
"nextOrder_ = " << nextOrder_ << std::endl;
379 *out <<
"stepSizeIncreaseFactor_ = " << stepSizeIncreaseFactor_ << std::endl;
380 *out <<
"countOfConstantStepsAfterFailure_ = " << countOfConstantStepsAfterFailure_ << std::endl;
384 template<
class Scalar>
387 TEUCHOS_TEST_FOR_EXCEPT(stepControlState_ != AFTER_CORRECTION);
391 ++totalNumberOfFailedSteps_;
392 ++countOfConstantStepsAfterFailure_;
395 if (currentStepSize_ <= minStepSize_)
396 return (REP_ERR_FAIL);
399 nextStepSize_ = std::max(minStepSize_, (currentStepSize_ * stepSizeDecreaseFactor_) );
401 setStepControlState_(READY_FOR_NEXT_STEP);
403 return(PREDICT_AGAIN);
406 template<
class Scalar>
408 Teuchos::FancyOStream &out,
409 const Teuchos::EVerbosityLevel verbLevel
415 if ( (as<int>(verbLevel) == as<int>(Teuchos::VERB_DEFAULT) ) ||
416 (as<int>(verbLevel) >= as<int>(Teuchos::VERB_LOW) )
418 out << this->description() <<
"::describe" << std::endl;
420 else if (as<int>(verbLevel) >= as<int>(Teuchos::VERB_LOW)) {
421 out <<
"currentStepSize_ = " << currentStepSize_ << std::endl;
422 out <<
"currentOrder_ = " << currentOrder_ << std::endl;
424 else if (as<int>(verbLevel) >= as<int>(Teuchos::VERB_MEDIUM)) {
426 else if (as<int>(verbLevel) >= as<int>(Teuchos::VERB_HIGH)) {
428 if (ee_ == Teuchos::null) {
429 out <<
"Teuchos::null" << std::endl;
431 ee_->describe(out,verbLevel);
434 if (delta_ == Teuchos::null) {
435 out <<
"Teuchos::null" << std::endl;
437 delta_->describe(out,verbLevel);
439 out <<
"errWtVec_ = ";
440 if (errWtVec_ == Teuchos::null) {
441 out <<
"Teuchos::null" << std::endl;
443 errWtVec_->describe(out,verbLevel);
448 template<
class Scalar>
450 RCP<Teuchos::ParameterList>
const& paramList
455 typedef Teuchos::ScalarTraits<Scalar> ST;
457 TEUCHOS_TEST_FOR_EXCEPT(paramList == Teuchos::null);
459 parameterList_ = Teuchos::parameterList(*paramList);
463 Teuchos::ParameterList& p = *parameterList_;
465 numConstantSteps_ = p.get<
int>(
"Number of Constant First Order Steps");
466 initialStepSize_ = p.get<Scalar>(
"Initial Step Size");
467 minStepSize_ = p.get<Scalar>(
"Min Step Size");
468 maxStepSize_ = p.get<Scalar>(
"Max Step Size");
469 stepSizeIncreaseFactor_ = p.get<Scalar>(
"Step Size Increase Factor");
470 stepSizeDecreaseFactor_ = p.get<Scalar>(
"Step Size Decrease Factor");
472 minOrder_ = p.get<
int>(
"Min Order");
473 TEUCHOS_TEST_FOR_EXCEPTION(
474 !((1 <= minOrder_) && (minOrder_ <= 5)), std::logic_error,
475 "Error, minOrder_ = " << minOrder_ <<
" is not in range [1,5]!\n" 477 maxOrder_ = p.get<
int>(
"Max Order");
478 TEUCHOS_TEST_FOR_EXCEPTION(
479 !((1 <= maxOrder_) && (maxOrder_ <= 5)), std::logic_error,
480 "Error, maxOrder_ = " << maxOrder_ <<
" is not in range [1,5]!\n" 483 absErrTol_ = p.get<Scalar>(
"Absolute Error Tolerance");
484 relErrTol_ = p.get<Scalar>(
"Relative Error Tolerance");
487 std::string let_acceptance =
488 p.get<std::string>(
"Use LET To Determine Step Acceptance");
489 useLETToDetermineConvergence_ = (let_acceptance ==
"TRUE");
494 TEUCHOS_TEST_FOR_EXCEPTION(useLETToDetermineConvergence_, std::logic_error,
495 "Error - the flag \"Use LET To Determine Step Acceptance\" is set to \"TRUE\" but the local error computation is currently not supported. Please set this flag to \"FALSE\" for now.");
498 if ( doOutput_(Teuchos::VERB_HIGH) ) {
499 RCP<Teuchos::FancyOStream> out = this->getOStream();
500 Teuchos::OSTab ostab(out,1,
"setParameterList");
502 *out <<
"minOrder_ = " << minOrder_ << std::endl;
503 *out <<
"maxOrder_ = " << maxOrder_ << std::endl;
504 *out <<
"relErrTol_ = " << relErrTol_ << std::endl;
505 *out <<
"absErrTol_ = " << absErrTol_ << std::endl;
506 *out <<
"stepSizeType = " << stepSizeType_ << std::endl;
507 *out <<
"stopTime_ = " << stopTime_ << std::endl;
512 template<
class Scalar>
513 RCP<const Teuchos::ParameterList>
518 using Teuchos::ParameterList;
520 static RCP<ParameterList> p;
524 p = rcp(
new ParameterList);
526 p->set<
int>(
"Number of Constant First Order Steps", 10,
"Number of constant steps to take before handing control to variable stepper.");
528 p->set<Scalar>(
"Initial Step Size", Scalar(1.0e-3),
529 "Initial time step size and target step size to take during the initial constant step phase (could be reduced due to step failures).");
531 p->set<Scalar>(
"Min Step Size", Scalar(1.0e-7),
"Minimum time step size.");
533 p->set<Scalar>(
"Max Step Size", Scalar(1.0),
"Maximum time step size.");
535 p->set<Scalar>(
"Step Size Increase Factor", Scalar(1.2),
"Time step growth factor used after a successful time step. dt_{n+1} = (increase factor) * dt_n");
537 p->set<Scalar>(
"Step Size Decrease Factor", Scalar(0.5),
"Time step reduction factor used for a failed time step. dt_{n+1} = (decrease factor) * dt_n");
539 p->set<
int>(
"Min Order", 1,
"Minimum order to run at.");
540 p->set<
int>(
"Max Order", 5,
"Maximum order to run at.");
542 p->set<Scalar>(
"Absolute Error Tolerance", Scalar(1.0e-5),
"abstol value used in WRMS calculation.");
543 p->set<Scalar>(
"Relative Error Tolerance", Scalar(1.0e-3),
"reltol value used in WRMS calculation.");
545 Teuchos::setStringToIntegralParameter<int>(
546 "Use LET To Determine Step Acceptance",
548 "If set to TRUE, then acceptance of step dependes on LET in addition to Nonlinear solver converging.",
549 Teuchos::tuple<std::string>(
"TRUE",
"FALSE"),
559 template<
class Scalar>
560 RCP<Teuchos::ParameterList>
563 RCP<Teuchos::ParameterList> temp_param_list = parameterList_;
564 parameterList_ = Teuchos::null;
565 return(temp_param_list);
568 template<
class Scalar>
569 RCP<Teuchos::ParameterList>
572 return(parameterList_);
575 template<
class Scalar>
578 if (stepControlState_ == UNINITIALIZED) {
582 int desiredOrder = bdfstepper.
getOrder();
583 TEUCHOS_TEST_FOR_EXCEPT(!((1 <= desiredOrder) && (desiredOrder <= maxOrder_)));
584 if (stepControlState_ == BEFORE_FIRST_STEP) {
585 TEUCHOS_TEST_FOR_EXCEPTION(
588 "Error, this ImplicitBDF stepper has not taken a step yet, so it cannot take a step of order " << desiredOrder <<
" > 1!\n" 591 TEUCHOS_TEST_FOR_EXCEPT(!(desiredOrder <= currentOrder_+1));
592 currentOrder_ = desiredOrder;
594 if ( doOutput_(Teuchos::VERB_EXTREME) ) {
595 RCP<Teuchos::FancyOStream> out = this->getOStream();
596 Teuchos::OSTab ostab(out,1,
"setStepControlData");
597 *out <<
"currentOrder_ = " << currentOrder_ << std::endl;
601 template<
class Scalar>
608 template<
class Scalar>
609 RCP<StepControlStrategyBase<Scalar> >
615 if (!is_null(parameterList_)) {
616 stepControl->setParameterList(parameterList_);
622 template<
class Scalar>
625 TEUCHOS_TEST_FOR_EXCEPT(is_null(errWtVecCalc));
626 errWtVecCalc_ = errWtVecCalc;
629 template<
class Scalar>
632 return(errWtVecCalc_);
635 template<
class Scalar>
637 const Thyra::VectorBase<Scalar>& weight,
638 const Thyra::VectorBase<Scalar>& vector)
const 640 return(norm_2(weight,vector));
643 template<
class Scalar>
646 TEUCHOS_TEST_FOR_EXCEPTION(
647 stepControlState_ == UNINITIALIZED, std::logic_error,
648 "Error, attempting to call getMinOrder before intiialization!\n" 653 template<
class Scalar>
656 TEUCHOS_TEST_FOR_EXCEPTION(
657 stepControlState_ == UNINITIALIZED, std::logic_error,
658 "Error, attempting to call getMaxOrder before initialization!\n" 663 template<
class Scalar>
666 Teuchos::EVerbosityLevel currentObjectVerbLevel = this->getVerbLevel();
668 if ( Teuchos::as<int>(currentObjectVerbLevel) >= Teuchos::as<int>(verbLevel) )
674 template<
class Scalar>
677 return numberOfSteps_;
680 template<
class Scalar>
683 return totalNumberOfFailedSteps_;
686 template<
class Scalar>
689 return currentStepSize_;
692 template<
class Scalar>
695 return currentOrder_;
705 #define RYTHMOS_IMPLICITBDF_STEPPER_RAMPING_STEPCONTROL_INSTANT(SCALAR) \ 706 template class ImplicitBDFStepperRampingStepControl< SCALAR >; 710 #endif // Rythmos_IMPLICITBDF_STEPPER_RAMPING_STEP_CONTROL_DEF_H void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
virtual RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const =0
Return the space for x and x_dot.
Base class for defining stepper functionality.
void setParameterList(RCP< Teuchos::ParameterList > const ¶mList)
RCP< Teuchos::ParameterList > unsetParameterList()
RCP< Teuchos::ParameterList > getNonconstParameterList()
bool supportsCloning() const
RCP< const ErrWtVecCalcBase< Scalar > > getErrWtVecCalc() const
void setStepControlData(const StepperBase< Scalar > &stepper)
StepControlStrategyState getCurrentState()
bool acceptStep(const StepperBase< Scalar > &stepper, Scalar *LETValue)
void setRequestedStepSize(const StepperBase< Scalar > &stepper, const Scalar &stepSize, const StepSizeType &stepSizeType)
virtual TimeRange< Scalar > getTimeRange() const =0
Return the range of time values where interpolation calls can be performed.
void setErrWtVecCalc(const RCP< ErrWtVecCalcBase< Scalar > > &errWtVecCalc)
void initialize(const StepperBase< Scalar > &stepper)
void setCorrection(const StepperBase< Scalar > &stepper, const RCP< const Thyra::VectorBase< Scalar > > &soln, const RCP< const Thyra::VectorBase< Scalar > > &ee, int solveStatus)
RCP< const Teuchos::ParameterList > getValidParameters() const
RCP< StepControlStrategyBase< Scalar > > cloneStepControlStrategyAlgorithm() const
void nextStepSize(const StepperBase< Scalar > &stepper, Scalar *stepSize, StepSizeType *stepSizeType, int *order)
void completeStep(const StepperBase< Scalar > &stepper)
const Thyra::VectorBase< Scalar > & getxHistory(int index) const
AttemptedStepStatusFlag rejectStep(const StepperBase< Scalar > &stepper)