From 7f266458b5dfe363218d17504ef91a041f0a894f Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Wed, 27 May 2015 14:50:58 +0200 Subject: [PATCH] Fix creation of initial value for computing the max (Fixes PR #805). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bård spotet a bug after PR #805 was merged. Indead returning -numeric_limits::min() does not make sense for integral values. This commit resorts to returning numeric_limits::min(). Kudos to Bård for his attention. --- opm/core/linalg/ParallelIstlInformation.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/core/linalg/ParallelIstlInformation.hpp b/opm/core/linalg/ParallelIstlInformation.hpp index d7f9d3831..03c873334 100644 --- a/opm/core/linalg/ParallelIstlInformation.hpp +++ b/opm/core/linalg/ParallelIstlInformation.hpp @@ -481,7 +481,7 @@ private: // for integral types. if( std::is_integral::value ) { - return -std::numeric_limits::min(); + return std::numeric_limits::min(); } else {