Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jan Hönig
waLBerla
Commits
7b6b01f0
Commit
7b6b01f0
authored
Aug 08, 2017
by
Christian Godenschwager
Browse files
[BUGFIX] Fixed return type of lbm::PerformanceLogger::getTiming
parent
a9c7e768
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lbm/PerformanceLogger.h
View file @
7b6b01f0
...
...
@@ -62,7 +62,7 @@ public:
private:
enum
Mode
{
MIN
,
MAX
,
AVG
,
LAST
};
real_t
getTiming
(
Mode
mode
)
const
;
double
getTiming
(
Mode
mode
)
const
;
PerformanceEvaluation
<
FlagField_T
>
performanceEvaluation_
;
uint_t
interval_
;
...
...
@@ -85,7 +85,7 @@ PerformanceLogger<FlagField_T>::PerformanceLogger( const shared_ptr< StructuredB
template
<
typename
FlagField_T
>
real_t
PerformanceLogger
<
FlagField_T
>::
getTiming
(
Mode
mode
)
const
double
PerformanceLogger
<
FlagField_T
>::
getTiming
(
Mode
mode
)
const
{
switch
(
mode
)
{
...
...
@@ -99,7 +99,7 @@ real_t PerformanceLogger<FlagField_T>::getTiming( Mode mode ) const
return
timer_
.
last
();
default:
WALBERLA_ASSERT
(
false
);
return
std
::
numeric_limits
<
real_t
>::
signaling_NaN
();
return
std
::
numeric_limits
<
double
>::
signaling_NaN
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment