opm-simulators/opm
Andreas Lauser edbfdb5ef3 FlowMain: make sure to always print exception messages to the terminal
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!
2016-11-03 17:22:51 +01:00
..
autodiff FlowMain: make sure to always print exception messages to the terminal 2016-11-03 17:22:51 +01:00
polymer Update to shared_ptr-less parser interface. 2016-10-20 14:08:04 +02:00
simulators Update to shared_ptr-less parser interface. 2016-10-20 14:08:04 +02:00