preCICE
v3.1.2
Loading...
Searching...
No Matches
src
cplscheme
impl
ResidualRelativeConvergenceMeasure.cpp
Go to the documentation of this file.
1
#include "
ResidualRelativeConvergenceMeasure.hpp
"
2
#include "
logging/LogMacros.hpp
"
3
#include "
math/differences.hpp
"
4
5
namespace
precice::cplscheme::impl
{
6
7
ResidualRelativeConvergenceMeasure::ResidualRelativeConvergenceMeasure
(
double
convergenceLimitPercent)
8
: _convergenceLimitPercent(convergenceLimitPercent)
9
{
10
PRECICE_ASSERT
(
math::greater
(
_convergenceLimitPercent
, 0.0) &&
math::greaterEquals
(1.0,
_convergenceLimitPercent
),
11
"Relative convergence limit has to be in ]0;1] !"
);
12
}
13
}
// namespace precice::cplscheme::impl
LogMacros.hpp
ResidualRelativeConvergenceMeasure.hpp
PRECICE_ASSERT
#define PRECICE_ASSERT(...)
Definition
assertion.hpp:87
precice::cplscheme::impl::ResidualRelativeConvergenceMeasure::_convergenceLimitPercent
double _convergenceLimitPercent
Definition
ResidualRelativeConvergenceMeasure.hpp:99
precice::cplscheme::impl::ResidualRelativeConvergenceMeasure::ResidualRelativeConvergenceMeasure
ResidualRelativeConvergenceMeasure(double convergenceLimitPercent)
Constructor.
Definition
ResidualRelativeConvergenceMeasure.cpp:7
differences.hpp
precice::cplscheme::impl
Definition
AbsoluteConvergenceMeasure.cpp:5
precice::math::greaterEquals
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type greaterEquals(Scalar A, Scalar B, Scalar tolerance=NUMERICAL_ZERO_DIFFERENCE)
Definition
differences.hpp:78
precice::math::greater
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type greater(Scalar A, Scalar B, Scalar tolerance=NUMERICAL_ZERO_DIFFERENCE)
Definition
differences.hpp:72