Commit 5a9336b8 authored by Andreas Wagner's avatar Andreas Wagner
Browse files

fixes incorrect starting values of in min and max methods of DGFunctions

parent dcefc8b6
Pipeline #33757 passed with stages
in 123 minutes and 35 seconds
......@@ -530,7 +530,7 @@ real_t DGFunction< ValueType >::getMaxValue( const uint_t level, DoFType flag )
template < typename ValueType >
real_t DGFunction< ValueType >::getMinValue( const uint_t level, DoFType flag )
{
real_t localMin = std::numeric_limits< ValueType >::min();
ValueType localMin = std::numeric_limits< ValueType >::max();
for ( auto& it : this->getStorage()->getFaces() )
{
......@@ -549,7 +549,7 @@ real_t DGFunction< ValueType >::getMinValue( const uint_t level, DoFType flag )
template < typename ValueType >
real_t DGFunction< ValueType >::getMaxMagnitude( const uint_t level, DoFType flag )
{
real_t localMax = real_t( 0.0 );
ValueType localMax = -std::numeric_limits< ValueType >::max();
for ( auto& it : this->getStorage()->getFaces() )
{
......
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