ReservoirCouplingErrorMacros.hpp File Reference
#include <opm/common/ErrorMacros.hpp>
#include <opm/simulators/utils/DeferredLoggingErrorHelpers.hpp>
Include dependency graph for ReservoirCouplingErrorMacros.hpp:

Go to the source code of this file.

Macros

#define RCOUP_LOG_THROW(Exception, message)
 

Macro Definition Documentation

◆ RCOUP_LOG_THROW

#define RCOUP_LOG_THROW (   Exception,
  message 
)
Value:
do { \
if (this->logger().haveDeferredLogger()) { \
OPM_DEFLOG_THROW(Exception, message, this->logger().deferredLogger()); \
} \
else { \
OPM_THROW(Exception, message); \
} \
} while (false)