make parseSuccess dependent on MPI

avoids unused warnings when building without
This commit is contained in:
Arne Morten Kvarving 2020-06-19 09:46:21 +02:00
parent 678756b9e1
commit 41e7201c73

View File

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