mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
simulator: drop unnecessary wrapper function
This commit is contained in:
parent
e081be96cd
commit
daea73d696
@ -47,20 +47,9 @@
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
namespace Opm
|
||||
{
|
||||
namespace detail
|
||||
{
|
||||
inline auto getMPIHelperCommunication()
|
||||
{
|
||||
return Dune::MPIHelper::getCommunication();
|
||||
}
|
||||
} // end namespace detail
|
||||
} // end namespace Opm
|
||||
|
||||
#define EWOMS_CATCH_PARALLEL_EXCEPTIONS_FATAL(code) \
|
||||
{ \
|
||||
const auto& comm = ::Opm::detail::getMPIHelperCommunication(); \
|
||||
const auto& comm = Dune::MPIHelper::getCommunication(); \
|
||||
bool exceptionThrown = false; \
|
||||
try { code; } \
|
||||
catch (const Dune::Exception& e) { \
|
||||
|
Loading…
Reference in New Issue
Block a user