diff --git a/opm/parser/eclipse/python/c_inter/cschedule.cc b/opm/parser/eclipse/python/c_inter/cschedule.cc index bca149995..0694e0aa3 100644 --- a/opm/parser/eclipse/python/c_inter/cschedule.cc +++ b/opm/parser/eclipse/python/c_inter/cschedule.cc @@ -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 ) {