avoid instancing a new Runspec from deck to obtain active phases

this is already available in the eclipseState.
in particular, this is preparing for the case where only the
root-process has a deck instance.
This commit is contained in:
Arne Morten Kvarving 2020-01-17 15:36:30 +01:00
parent 821e4386bc
commit 8a14d70f97

View File

@ -371,7 +371,7 @@ int main(int argc, char** argv)
throw std::runtime_error("Unrecoverable errors were encountered while loading input.");
}
}
const auto& phases = Opm::Runspec(*deck).phases();
const auto& phases = eclipseState->runspec().phases();
bool outputFiles = (outputMode != FileOutputMode::OUTPUT_NONE);
// run the actual simulator
//