preCICE
v3.2.0
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
h
i
m
n
p
r
s
t
Typedefs
b
d
e
g
l
m
p
r
s
t
u
v
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
i
k
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
c
d
e
i
l
m
n
o
r
s
u
v
w
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
g
i
j
m
n
o
p
r
s
t
v
Functions
a
b
c
g
m
p
r
s
t
v
Variables
Typedefs
Macros
b
d
m
n
p
t
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
src
cplscheme
impl
AbsoluteOrRelativeConvergenceMeasure.cpp
Go to the documentation of this file.
1
#include "
AbsoluteOrRelativeConvergenceMeasure.hpp
"
2
#include "
logging/LogMacros.hpp
"
3
4
namespace
precice::cplscheme::impl
{
5
6
AbsoluteOrRelativeConvergenceMeasure::AbsoluteOrRelativeConvergenceMeasure
(
double
absLimit,
double
relLimit)
7
: _convergenceLimit(absLimit), _convergenceLimitPercent(relLimit)
8
{
9
PRECICE_ASSERT
(
math::greater
(
_convergenceLimit
, 0.0),
10
"Absolute convergence limit has to be greater than zero!"
);
11
PRECICE_ASSERT
(
math::greater
(
_convergenceLimitPercent
, 0.0) &&
math::greaterEquals
(1.0,
_convergenceLimitPercent
),
12
"Relative convergence limit has to be in (0;1] !"
);
13
}
6
AbsoluteOrRelativeConvergenceMeasure::AbsoluteOrRelativeConvergenceMeasure
(
double
absLimit,
double
relLimit) {
…
}
14
}
// namespace precice::cplscheme::impl
AbsoluteOrRelativeConvergenceMeasure.hpp
LogMacros.hpp
PRECICE_ASSERT
#define PRECICE_ASSERT(...)
Definition
assertion.hpp:85
precice::cplscheme::impl::AbsoluteOrRelativeConvergenceMeasure::_convergenceLimitPercent
double _convergenceLimitPercent
Definition
AbsoluteOrRelativeConvergenceMeasure.hpp:120
precice::cplscheme::impl::AbsoluteOrRelativeConvergenceMeasure::_convergenceLimit
double _convergenceLimit
Definition
AbsoluteOrRelativeConvergenceMeasure.hpp:118
precice::cplscheme::impl::AbsoluteOrRelativeConvergenceMeasure::AbsoluteOrRelativeConvergenceMeasure
AbsoluteOrRelativeConvergenceMeasure(double absLimit, double relLimit)
Constructor.
Definition
AbsoluteOrRelativeConvergenceMeasure.cpp:6
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:77
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:71