Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Tempus_StepperOperatorSplitModifierBase.hpp
Go to the documentation of this file.
1 // @HEADER
2 // ****************************************************************************
3 // Tempus: Copyright (2017) Sandia Corporation
4 //
5 // Distributed under BSD 3-clause license (See accompanying file Copyright.txt)
6 // ****************************************************************************
7 // @HEADER
8 
9 #ifndef Tempus_StepperOperatorSplitModifierBase_hpp
10 #define Tempus_StepperOperatorSplitModifierBase_hpp
11 
12 #include "Tempus_SolutionHistory.hpp"
13 #include "Tempus_config.hpp"
15 
16 namespace Tempus {
17 
18  /** \brief Base modifier for OperatorSplit.
19  *
20  * This class provides a means to modify values (e.g., solution variables
21  * through SolutionHistory, and stepper member data through the Stepper),
22  * and can be very powerful and easy to make changes to the stepper and
23  * the solution.
24  *
25  * Users deriving from this class can access a lot of data, and it is
26  * expected that those users know what changes are allowable without
27  * affecting the Stepper correctness, performance, accuracy and stability.
28  * Thus the user should be careful when accessing data through classes
29  * derived from the default modifier (i.e., USER BEWARE!!).
30  *
31  */
32  template<class Scalar>
34  : virtual public Tempus::StepperOperatorSplitAppAction<Scalar>
35  {
36  private:
37  /* \brief Adaptor execute function
38  *
39  * This is an adaptor function to bridge between the AppAction
40  * interface and the Modifier interface. It is meant to be private
41  * and non-virtual as deriving from this class should only need to
42  * implement the modify function.
43  *
44  * For the Modifier interface, this adaptor is a "simple pass through".
45  */
46  void execute(
47  Teuchos::RCP<SolutionHistory<Scalar> > sh,
48  Teuchos::RCP<StepperOperatorSplit<Scalar> > stepper,
50  { this->modify(sh, stepper, actLoc); }
51  public:
52  /// Modify OperatorSplit Stepper.
53  virtual void modify(
54  Teuchos::RCP<SolutionHistory<Scalar> > /* sh */,
55  Teuchos::RCP<StepperOperatorSplit<Scalar> > /* stepper */,
57 
58  };
59 
60 } // namespace Tempus
61 #endif // Tempus_StepperOperatorModifierBase_hpp
62 
63 
64 
65 
OperatorSplit stepper loops through the Stepper list.
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
void execute(Teuchos::RCP< SolutionHistory< Scalar > > sh, Teuchos::RCP< StepperOperatorSplit< Scalar > > stepper, const typename StepperOperatorSplitAppAction< Scalar >::ACTION_LOCATION actLoc)
Execute application action for OperatorSplit Stepper.
virtual void modify(Teuchos::RCP< SolutionHistory< Scalar > >, Teuchos::RCP< StepperOperatorSplit< Scalar > >, const typename StepperOperatorSplitAppAction< Scalar >::ACTION_LOCATION actLoc)=0
Modify OperatorSplit Stepper.
StepperOperatorSplitAppAction class for StepperOperatorSplit.