Commit 7b6b01f0 authored by Christian Godenschwager's avatar Christian Godenschwager
Browse files

[BUGFIX] Fixed return type of lbm::PerformanceLogger::getTiming

parent a9c7e768
......@@ -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();
}
}
......
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