mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
this patch only uses OpmLog if it is set up properly, else it uses std::cout. the reason why this is needed is that there's a chicken-and-egg problem: exceptions which are thrown before the logging system has been initialized -- most prominently while parsing the deck -- cause the simulator to silently abort without any user notification which can be very confusing. On the other hand, initializing the logging system requires a fully initialized EclipseState object, i.e. currently to initialze the logging system the deck must be parsed and in order to print the exceptions thrown while parsing the deck one needs the logging system. v2: only prevent using the logging system if has not been set up. thanks to [at]blattms for the suggestion! |
||
---|---|---|
.. | ||
autodiff | ||
polymer | ||
simulators |