-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7539 from trilinos/7522-Tempus-Cleanup-of-AppActi…
…on-Includes Tempus: Cleanup of AppAction Includes.
- Loading branch information
Showing
31 changed files
with
295 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
packages/tempus/src/Tempus_StepperOperatorSplitModifierXDefault.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// @HEADER | ||
// **************************************************************************** | ||
// Tempus: Copyright (2017) Sandia Corporation | ||
// | ||
// Distributed under BSD 3-clause license (See accompanying file Copyright.txt) | ||
// **************************************************************************** | ||
// @HEADER | ||
|
||
#ifndef Tempus_StepperOperatorSplitModifierXDefault_hpp | ||
#define Tempus_StepperOperatorSplitModifierXDefault_hpp | ||
|
||
#include "Tempus_config.hpp" | ||
#include "Tempus_StepperOperatorSplitModifierXBase.hpp" | ||
|
||
// Applications can uncomment this include in their implementation, | ||
// if they need access to the stepper methods. | ||
//#include "Tempus_StepperOperatorSplit.hpp" | ||
|
||
|
||
namespace Tempus { | ||
|
||
/** \brief Default ModifierX for StepperOperatorSplit. | ||
* | ||
* The default ModifierX provides no-op functionality for ModifierX. | ||
* See StepperOperatorSplitModifierXBase for details on the algorithm. | ||
* | ||
* Applications can copy this implementation, rename, implement their | ||
* action, and set on the stepper to get app-specific functionality. | ||
*/ | ||
template<class Scalar> | ||
class StepperOperatorSplitModifierXDefault | ||
: virtual public Tempus::StepperOperatorSplitModifierXBase<Scalar> | ||
{ | ||
public: | ||
|
||
/// Constructor | ||
StepperOperatorSplitModifierXDefault(){} | ||
|
||
/// Destructor | ||
virtual ~StepperOperatorSplitModifierXDefault(){} | ||
|
||
/// Modify OperatorSplit Stepper. | ||
virtual void modify( | ||
Teuchos::RCP<Thyra::VectorBase<Scalar> > /* x */, | ||
const Scalar /* time */, const Scalar /* dt */, | ||
const typename StepperOperatorSplitModifierXBase<Scalar>::MODIFIER_TYPE modType) | ||
{ | ||
switch(modType) { | ||
case StepperOperatorSplitModifierXBase<Scalar>::X_BEGIN_STEP: | ||
case StepperOperatorSplitModifierXBase<Scalar>::X_BEFORE_STEPPER: | ||
case StepperOperatorSplitModifierXBase<Scalar>::X_AFTER_STEPPER: | ||
case StepperOperatorSplitModifierXBase<Scalar>::XDOT_END_STEP: | ||
{ | ||
// No-op. | ||
break; | ||
} | ||
default: | ||
TEUCHOS_TEST_FOR_EXCEPTION(true, std::logic_error, | ||
"Error - unknown action location.\n"); | ||
} | ||
} | ||
|
||
}; | ||
|
||
} // namespace Tempus | ||
|
||
#endif // Tempus_StepperOperatorSplitModifierXDefault_hpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.