Merge pull request #2679 from akva2/janitoring

make parseSuccess dependent on MPI
This commit is contained in:
Atgeirr Flø Rasmussen 2020-06-19 15:10:38 +02:00 committed by GitHub
commit 226697ec6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,7 +405,9 @@ namespace Opm
Opm::FlowMainEbos<PreTypeTag>::printPRTHeader(outputCout_); Opm::FlowMainEbos<PreTypeTag>::printPRTHeader(outputCout_);
#if HAVE_MPI
int parseSuccess = 0; int parseSuccess = 0;
#endif
std::string failureMessage; std::string failureMessage;
if (mpiRank == 0) { if (mpiRank == 0) {
@ -446,7 +448,9 @@ namespace Opm
setupMessageLimiter_(schedule_->getMessageLimits(), "STDOUT_LOGGER"); setupMessageLimiter_(schedule_->getMessageLimits(), "STDOUT_LOGGER");
if (!summaryConfig_) if (!summaryConfig_)
summaryConfig_.reset( new Opm::SummaryConfig(*deck_, *schedule_, eclipseState_->getTableManager(), parseContext, errorGuard)); summaryConfig_.reset( new Opm::SummaryConfig(*deck_, *schedule_, eclipseState_->getTableManager(), parseContext, errorGuard));
#if HAVE_MPI
parseSuccess = 1; parseSuccess = 1;
#endif
} }
catch(const std::exception& e) catch(const std::exception& e)
{ {