mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1647 from andlaus/thermal_determination
flow: use eclipseState.simulatorConfig().isThermal() to determine whether energy ought to be conserved
This commit is contained in:
commit
bec18a5d91
@ -167,6 +167,12 @@ int main(int argc, char** argv)
|
||||
const auto& phases = runspec.phases();
|
||||
|
||||
std::shared_ptr<Opm::EclipseState> eclipseState = std::make_shared< Opm::EclipseState > ( *deck, parseContext );
|
||||
|
||||
// run the actual simulator
|
||||
//
|
||||
// TODO: make sure that no illegal combinations like thermal and twophase are
|
||||
// requested.
|
||||
|
||||
// Twophase cases
|
||||
if( phases.size() == 2 ) {
|
||||
// oil-gas
|
||||
@ -211,7 +217,7 @@ int main(int argc, char** argv)
|
||||
return Opm::flowEbosSolventMain(argc, argv);
|
||||
}
|
||||
// Energy case
|
||||
else if ( phases.active( Opm::Phase::ENERGY ) ) {
|
||||
else if (eclipseState->getSimulationConfig().isThermal()) {
|
||||
Opm::flowEbosEnergySetDeck(*deck, *eclipseState);
|
||||
return Opm::flowEbosEnergyMain(argc, argv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user