mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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();
|
const auto& cc = Dune::MPIHelper::getCollectiveCommunication();
|
||||||
if (cc.max(exception_thrown) == 1) {
|
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();
|
deferred_logger.clearMessages();
|
||||||
const auto& cc = Dune::MPIHelper::getCollectiveCommunication();
|
const auto& cc = Dune::MPIHelper::getCollectiveCommunication();
|
||||||
if (cc.max(exception_thrown) == 1) {
|
if (cc.max(exception_thrown) == 1) {
|
||||||
throw std::logic_error(message);
|
throw std::runtime_error(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user