diff --git a/opm/io/eclipse/rst/well.hpp b/opm/io/eclipse/rst/well.hpp index 69f389c46..4fd1cff9a 100644 --- a/opm/io/eclipse/rst/well.hpp +++ b/opm/io/eclipse/rst/well.hpp @@ -68,7 +68,7 @@ struct RstWell { int active_control; int vfp_table; int pred_requested_control; - int xflow; + bool allow_xflow; int hist_requested_control; int msw_index; int completion_ordering; diff --git a/src/opm/io/eclipse/rst/well.cpp b/src/opm/io/eclipse/rst/well.cpp index a73473080..edc87ccce 100644 --- a/src/opm/io/eclipse/rst/well.cpp +++ b/src/opm/io/eclipse/rst/well.cpp @@ -53,7 +53,7 @@ RstWell::RstWell(const ::Opm::UnitSystem& unit_system, active_control( iwel[VI::IWell::ActWCtrl]), vfp_table( iwel[VI::IWell::VFPTab]), pred_requested_control( iwel[VI::IWell::PredReqWCtrl]), - xflow( iwel[VI::IWell::XFlow]), + allow_xflow( iwel[VI::IWell::XFlow] == 1), hist_requested_control( iwel[VI::IWell::HistReqWCtrl]), msw_index( iwel[VI::IWell::MsWID]), completion_ordering( iwel[VI::IWell::CompOrd]),