Commit 17230405 authored by breuera's avatar breuera

Added dynamic dry tolerance.

parent 1b7f0cc8
...@@ -31,7 +31,7 @@ template <typename T> class solver::WavePropagation { ...@@ -31,7 +31,7 @@ template <typename T> class solver::WavePropagation {
protected: protected:
//global variables //global variables
//! numerical definition of "dry". //! numerical definition of "dry".
const T dryTol; T dryTol;
//! gravity constant //! gravity constant
const T g; const T g;
//! numerical definition of zero. //! numerical definition of zero.
...@@ -193,6 +193,15 @@ template <typename T> class solver::WavePropagation { ...@@ -193,6 +193,15 @@ template <typename T> class solver::WavePropagation {
T &o_huUpdateRight, T &o_huUpdateRight,
T &o_maxWaveSpeed ) = 0; T &o_maxWaveSpeed ) = 0;
/**
* Sets the dry tolerance of the solver.
*
* @param i_dryTolerance dry tolerance.
*/
void setDryTolerance( const T i_dryTolerance ) {
dryTol = i_dryTolerance;
}
virtual ~WavePropagation() {}; virtual ~WavePropagation() {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment