9 #ifndef Tempus_StepperTrapezoidalModifierXBase_hpp
10 #define Tempus_StepperTrapezoidalModifierXBase_hpp
12 #include "Tempus_config.hpp"
13 #include "Tempus_SolutionHistory.hpp"
36 template<
class Scalar>
63 RCP<SolutionState<Scalar> > workingState = sh->getWorkingState();
64 const Scalar time = workingState->getTime();
65 const Scalar dt = workingState->getTimeStep();
66 RCP<Thyra::VectorBase<Scalar> > x;
72 x = workingState->getX();
78 x = workingState->getX();
84 x = workingState->getX();
90 if (workingState->getXDot() != Teuchos::null)
91 x = workingState->getXDot();
93 x = stepper->getStepperXDot();
98 "Error - unknown action location.\n");
101 this->
modify(x, time, dt, modType);
117 const Scalar ,
const Scalar ,
124 #endif // Tempus_StepperTrapezoidalModifierXBase_hpp
MODIFIER_TYPE
Indicates the location of application action (see algorithm).
Trapezoidal method time stepper.
Modify at the end of the step.
Modify before the implicit solve.
virtual void modify(Teuchos::RCP< Thyra::VectorBase< Scalar > >, const Scalar, const Scalar, const MODIFIER_TYPE modType)=0
Modify solution based on the MODIFIER_TYPE.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
ACTION_LOCATION
Indicates the location of application action (see algorithm).
Base ModifierX for StepperTrapezoidal.
Modify at the beginning of the step.
void execute(Teuchos::RCP< SolutionHistory< Scalar > > sh, Teuchos::RCP< StepperTrapezoidal< Scalar > > stepper, const typename StepperTrapezoidalAppAction< Scalar >::ACTION_LOCATION actLoc)
Execute application action for Trapezoidal Stepper.
Application Action for StepperTrapezoidal.
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Modify after the implicit solve.