|
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. | |
| Stepper_ErrorNorm (const Scalar relTol, const Scalar absTol) | |
| Constructor. | |
| ~Stepper_ErrorNorm () | |
| Destructor. | |
| 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. | |
| Scalar | errorNorm (const Teuchos::RCP< const Thyra::VectorBase< Scalar > > &x) |
| Compute the error Norm. | |
| 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
![\[
e_{wrms} \equiv \sqrt{ \frac{1}{N} \sum_{i=1}^N \left( \frac
{u^n_i}{A_{tol} + \max (|u^n_i|, |u^{n+1}_i|) R_{tol}} \right) ^2 }
\]](form_31.png)
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
![\[
e = \max_i ( u_i / ( A_{tol} + |u_i| R_{tol}))
\]](form_40.png)
where 



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.