9#ifndef Tempus_StepperHHTAlphaModifierXBase_hpp
10#define Tempus_StepperHHTAlphaModifierXBase_hpp
12#include "Tempus_config.hpp"
13#include "Tempus_SolutionHistory.hpp"
58 RCP<SolutionState<Scalar> > workingState = sh->getWorkingState();
59 const Scalar time = workingState->getTime();
60 const Scalar dt = workingState->getTimeStep();
61 RCP<Thyra::VectorBase<Scalar> > x;
67 x = workingState->getX();
73 x = workingState->getX();
79 x = workingState->getX();
85 if (workingState->getX() != Teuchos::null)
86 x = workingState->getX();
88 x = stepper->getStepperX();
92 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
93 "Error - unknown action location.\n");
96 this->
modify(x, time, dt, modType);
112 const Scalar ,
const Scalar ,
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Application Action for HHT Alpha.
ACTION_LOCATION
Indicates the location of application action (see algorithm).
Base ModifierX for StepperHHTAlpha.
void execute(Teuchos::RCP< SolutionHistory< Scalar > > sh, Teuchos::RCP< StepperHHTAlpha< Scalar > > stepper, const typename StepperHHTAlphaAppAction< Scalar >::ACTION_LOCATION actLoc)
Execute application action for HHTAlpha 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.