Tempus
Version of the Day
Time Integration
|
Stepper_ErrorNorm provides error norm calcualtions for variable time stepping. More...
#include <Tempus_Stepper_ErrorNorm_decl.hpp>
Public Member Functions | |
Stepper_ErrorNorm () | |
Default Constructor. More... | |
Stepper_ErrorNorm (const Scalar relTol, const Scalar absTol) | |
Constructor. More... | |
~Stepper_ErrorNorm () | |
Destructor. More... | |
Scalar | computeWRMSNorm (const Teuchos::RCP< const Thyra::VectorBase< Scalar >> &x, const Teuchos::RCP< const Thyra::VectorBase< Scalar >> &xNext, const Teuchos::RCP< const Thyra::VectorBase< Scalar >> &err) |
Compute the weigthed root mean square norm. More... | |
Scalar | errorNorm (const Teuchos::RCP< const Thyra::VectorBase< Scalar >> &x) |
Compute the error Norm. More... | |
void | setRelativeTolerance (const Scalar relTol) |
void | setAbsoluteTolerance (const Scalar absTol) |
Protected Attributes | |
Scalar | relTol_ |
Scalar | abssTol_ |
Teuchos::RCP < Thyra::VectorBase< Scalar > > | u_ |
Teuchos::RCP < Thyra::VectorBase< Scalar > > | uNext_ |
Teuchos::RCP < Thyra::VectorBase< Scalar > > | errorWeightVector_ |
Teuchos::RCP < Thyra::VectorBase< Scalar > > | scratchVector_ |
Stepper_ErrorNorm provides error norm calcualtions for variable time stepping.
Definition at line 25 of file Tempus_Stepper_ErrorNorm_decl.hpp.
Tempus::Stepper_ErrorNorm< Scalar >::Stepper_ErrorNorm | ( | ) |
Default Constructor.
Definition at line 24 of file Tempus_Stepper_ErrorNorm_impl.hpp.
Tempus::Stepper_ErrorNorm< Scalar >::Stepper_ErrorNorm | ( | const Scalar | relTol, |
const Scalar | absTol | ||
) |
Constructor.
Definition at line 30 of file Tempus_Stepper_ErrorNorm_impl.hpp.
|
inline |
Destructor.
Definition at line 34 of file Tempus_Stepper_ErrorNorm_decl.hpp.
Scalar Tempus::Stepper_ErrorNorm< Scalar >::computeWRMSNorm | ( | const Teuchos::RCP< const Thyra::VectorBase< Scalar >> & | x, |
const Teuchos::RCP< const Thyra::VectorBase< Scalar >> & | xNext, | ||
const Teuchos::RCP< const Thyra::VectorBase< Scalar >> & | err | ||
) |
Compute the weigthed root mean square norm.
The WRMS norm is
where
Definition at line 37 of file Tempus_Stepper_ErrorNorm_impl.hpp.
Scalar Tempus::Stepper_ErrorNorm< Scalar >::errorNorm | ( | const Teuchos::RCP< const Thyra::VectorBase< Scalar >> & | x | ) |
Compute the error Norm.
The error norm is
where is the absolute tolerance, is the relative tolerance, and is the maximum over all elements in .
Definition at line 73 of file Tempus_Stepper_ErrorNorm_impl.hpp.
|
inline |
Definition at line 70 of file Tempus_Stepper_ErrorNorm_decl.hpp.
|
inline |
Definition at line 71 of file Tempus_Stepper_ErrorNorm_decl.hpp.
|
protected |
Definition at line 74 of file Tempus_Stepper_ErrorNorm_decl.hpp.
|
protected |
Definition at line 75 of file Tempus_Stepper_ErrorNorm_decl.hpp.
|
protected |
Definition at line 76 of file Tempus_Stepper_ErrorNorm_decl.hpp.
|
protected |
Definition at line 77 of file Tempus_Stepper_ErrorNorm_decl.hpp.
|
protected |
Definition at line 78 of file Tempus_Stepper_ErrorNorm_decl.hpp.
|
protected |
Definition at line 79 of file Tempus_Stepper_ErrorNorm_decl.hpp.