Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Tempus_StepperRKModifierXDefault.hpp
Go to the documentation of this file.
1 //@HEADER
2 // *****************************************************************************
3 // Tempus: Time Integration and Sensitivity Analysis Package
4 //
5 // Copyright 2017 NTESS and the Tempus contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 //@HEADER
9 
10 #ifndef Tempus_StepperRKModifierX_hpp
11 #define Tempus_StepperRKModifierX_hpp
12 
13 #include "Tempus_config.hpp"
15 
16 namespace Tempus {
17 
26 template <class Scalar>
28  : virtual public Tempus::StepperRKModifierXBase<Scalar> {
29  public:
32 
35 
37  virtual void modify(
38  Teuchos::RCP<Thyra::VectorBase<Scalar> > /* x */, const Scalar /* time */,
39  const Scalar /* dt */, const int /* stageNumber */,
40  const typename StepperRKModifierXBase<Scalar>::MODIFIER_TYPE modType)
41  {
42  switch (modType) {
50  // No-op.
51  break;
52  }
53  default:
54  TEUCHOS_TEST_FOR_EXCEPTION(true, std::logic_error,
55  "Error - unknown modifier type.\n");
56  }
57  }
58 };
59 
60 } // namespace Tempus
61 
62 #endif // Tempus_StepperRKModifierX_hpp
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
MODIFIER_TYPE
Indicates the location of application action (see algorithm).
virtual void modify(Teuchos::RCP< Thyra::VectorBase< Scalar > >, const Scalar, const Scalar, const int, const typename StepperRKModifierXBase< Scalar >::MODIFIER_TYPE modType)
Modify solution based on the MODIFIER_TYPE.