readDeck: make the ErrorGuard an internal detail

This commit is contained in:
Arne Morten Kvarving
2023-01-17 08:15:26 +01:00
parent 9c3d1237bd
commit 240c039f53
5 changed files with 3 additions and 9 deletions

View File

@@ -487,16 +487,13 @@ void Opm::readDeck(Opm::Parallel::Communication comm,
std::unique_ptr<Action::State>& actionState,
std::unique_ptr<WellTestState>& wtestState,
std::shared_ptr<SummaryConfig>& summaryConfig,
std::unique_ptr<ErrorGuard> errorGuard,
std::shared_ptr<Python> python,
const bool strictParsing,
const bool initFromRestart,
const bool checkDeck,
const std::optional<int>& outputInterval)
{
if (errorGuard == nullptr) {
errorGuard = std::make_unique<ErrorGuard>();
}
auto errorGuard = std::make_unique<ErrorGuard>();
int parseSuccess = 1; // > 0 is success
std::string failureMessage;