From a33c967ad0a86f92b73f7959e91173785b8f6126 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Wed, 22 May 2019 10:08:55 +0200 Subject: [PATCH] throw runtime_error instead of logical_error --- opm/simulators/utils/DeferredLoggingErrorHelpers.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/utils/DeferredLoggingErrorHelpers.hpp b/opm/simulators/utils/DeferredLoggingErrorHelpers.hpp index f0c3298fb..8bc0a267f 100644 --- a/opm/simulators/utils/DeferredLoggingErrorHelpers.hpp +++ b/opm/simulators/utils/DeferredLoggingErrorHelpers.hpp @@ -53,7 +53,7 @@ inline void checkForExceptionsAndThrow(int exception_thrown, const std::string& { const auto& cc = Dune::MPIHelper::getCollectiveCommunication(); if (cc.max(exception_thrown) == 1) { - throw std::logic_error(message); + throw std::runtime_error(message); } } @@ -69,7 +69,7 @@ inline void logAndCheckForExceptionsAndThrow(Opm::DeferredLogger& deferred_logge deferred_logger.clearMessages(); const auto& cc = Dune::MPIHelper::getCollectiveCommunication(); if (cc.max(exception_thrown) == 1) { - throw std::logic_error(message); + throw std::runtime_error(message); } }