preCICE
v3.1.2
Loading...
Searching...
No Matches
src
cplscheme
impl
AbsoluteConvergenceMeasure.cpp
Go to the documentation of this file.
1
#include "
AbsoluteConvergenceMeasure.hpp
"
2
#include "
logging/LogMacros.hpp
"
3
#include "
math/differences.hpp
"
4
5
namespace
precice::cplscheme::impl
{
6
7
AbsoluteConvergenceMeasure::AbsoluteConvergenceMeasure
(
double
convergenceLimit)
8
: _convergenceLimit(convergenceLimit)
9
{
10
PRECICE_ASSERT
(
math::greater
(
_convergenceLimit
, 0.0),
11
"Absolute convergence limit has to be greater than zero!"
);
12
}
13
14
}
// namespace precice::cplscheme::impl
AbsoluteConvergenceMeasure.hpp
LogMacros.hpp
PRECICE_ASSERT
#define PRECICE_ASSERT(...)
Definition
assertion.hpp:87
precice::cplscheme::impl::AbsoluteConvergenceMeasure::AbsoluteConvergenceMeasure
AbsoluteConvergenceMeasure(double convergenceLimit)
Definition
AbsoluteConvergenceMeasure.cpp:7
precice::cplscheme::impl::AbsoluteConvergenceMeasure::_convergenceLimit
double _convergenceLimit
Definition
AbsoluteConvergenceMeasure.hpp:86
differences.hpp
precice::cplscheme::impl
Definition
AbsoluteConvergenceMeasure.cpp:5
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