Get phases from deck in Schedule python interface

This commit is contained in:
Anders Matheson
2016-11-03 13:12:34 +01:00
parent 276a599e30
commit 82b989079e

View File

@@ -22,7 +22,7 @@ extern "C" {
Opm::Schedule * schedule_alloc(Opm::ParseContext * context, Opm::EclipseGrid * grid, Opm::Deck * deck) {
return new Opm::Schedule( *context , *grid, *deck, Opm::Phases(true, true, true) );
return new Opm::Schedule( *context , *grid, *deck, Opm::Runspec(*deck).phases() );
}
void schedule_free( Opm::Schedule * schedule ) {