9#ifndef Tempus_StepperBDF2ModifierXBase_hpp
10#define Tempus_StepperBDF2ModifierXBase_hpp
12#include "Tempus_config.hpp"
13#include "Tempus_SolutionHistory.hpp"
64 RCP<SolutionState<Scalar> > workingState = sh->getWorkingState();
65 const Scalar time = workingState->getTime();
66 const Scalar dt = workingState->getTimeStep();
67 RCP<Thyra::VectorBase<Scalar> > x;
73 x = workingState->getX();
79 x = workingState->getX();
85 x = workingState->getX();
91 x = workingState->getX();
95 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
96 "Error - unknown action location.\n");
99 this->
modify(x, time, dt, modType);
115 const Scalar ,
const Scalar ,
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Application Action for StepperBDF2.
ACTION_LOCATION
Indicates the location of application action (see algorithm).
Base ModifierX for StepperBDF2.
void execute(Teuchos::RCP< SolutionHistory< Scalar > > sh, Teuchos::RCP< StepperBDF2< Scalar > > stepper, const typename StepperBDF2AppAction< Scalar >::ACTION_LOCATION actLoc)
Execute application action for BDF2 Stepper.
MODIFIER_TYPE
Indicates the location of application action (see algorithm).
@ X_END_STEP
Modify at the end of the step.
@ X_AFTER_SOLVE
Modify after the implicit solve.
@ X_BEFORE_SOLVE
Modify before the implicit solve.
@ X_BEGIN_STEP
Modify at the beginning of the step.
virtual void modify(Teuchos::RCP< Thyra::VectorBase< Scalar > >, const Scalar, const Scalar, const MODIFIER_TYPE modType)=0
Modify solution based on the MODIFIER_TYPE.
BDF2 (Backward-Difference-Formula-2) time stepper.