From 82b989079e7b5ec90b63547d2ea0441ee75e8cc5 Mon Sep 17 00:00:00 2001 From: Anders Matheson Date: Thu, 3 Nov 2016 13:12:34 +0100 Subject: [PATCH] Get phases from deck in Schedule python interface --- opm/parser/eclipse/python/c_inter/cschedule.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {