From 9e3868d6d8388f89fb443a1b2eb992365e6d5ded Mon Sep 17 00:00:00 2001 From: sigurdp Date: Mon, 4 Dec 2017 19:47:08 +0100 Subject: [PATCH] First attempt at using unit conversion when getting PVT curve data (commented out due to crash) --- .../ReservoirDataModel/RigFlowDiagSolverInterface.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ApplicationCode/ReservoirDataModel/RigFlowDiagSolverInterface.cpp b/ApplicationCode/ReservoirDataModel/RigFlowDiagSolverInterface.cpp index 16a7352580..6408c51778 100644 --- a/ApplicationCode/ReservoirDataModel/RigFlowDiagSolverInterface.cpp +++ b/ApplicationCode/ReservoirDataModel/RigFlowDiagSolverInterface.cpp @@ -30,6 +30,7 @@ #include "RigFlowDiagInterfaceTools.h" #include "opm/flowdiagnostics/DerivedQuantities.hpp" +#include "opm/utility/ECLPropertyUnitConversion.hpp" #include "opm/utility/ECLSaturationFunc.hpp" #include "opm/utility/ECLPvtCurveCollection.hpp" @@ -134,6 +135,10 @@ public: try { m_eclPvtCurveCollection.reset(new Opm::ECLPVT::ECLPvtCurveCollection(*m_eclGraph, initData)); + + // Tried to set output units, but currently causes crashes when getting PVT curve data + //m_eclPvtCurveCollection->setOutputUnits(Opm::ECLUnits::metricUnitConventions()); + //m_eclPvtCurveCollection->setOutputUnits(Opm::ECLUnits::fieldUnitConventions()); } catch (...) {