Merge pull request #2287 from akva2/avoid_deck_for_phases

avoid instancing a new Runspec from deck to obtain active phases
This commit is contained in:
Bård Skaflestad
2020-01-17 16:22:26 +01:00
committed by GitHub

View File

@@ -374,7 +374,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
//