mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 18:50:19 -06:00
throw runtime_error instead of logical_error
This commit is contained in:
parent
8197bcfc54
commit
a33c967ad0
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user