diff --git a/opm/autodiff/FlowMain.hpp b/opm/autodiff/FlowMain.hpp index 351ac6b18..0b1fd7666 100644 --- a/opm/autodiff/FlowMain.hpp +++ b/opm/autodiff/FlowMain.hpp @@ -137,8 +137,8 @@ namespace Opm if (!ok) { return EXIT_FAILURE; } - asImpl().setupLogging(); asImpl().setupOutput(); + asImpl().setupLogging(); asImpl().readDeckInput(); asImpl().setupGridAndProps(); asImpl().extractMessages(); @@ -355,6 +355,8 @@ namespace Opm prtLog->setMessageFormatter(std::make_shared(false)); streamLog->setMessageLimiter(std::make_shared(10)); streamLog->setMessageFormatter(std::make_shared(true)); + // Read parameters. + OpmLog::debug("\n--------------- Reading parameters ---------------\n"); } @@ -370,8 +372,6 @@ namespace Opm // Throws std::runtime_error if failed to create (if requested) output dir. void setupOutput() { - // Read parameters. - OpmLog::debug("\n--------------- Reading parameters ---------------\n"); // Write parameters used for later reference. (only if rank is zero) output_to_files_ = output_cout_ && param_.getDefault("output", true); if (output_to_files_) {