From d42bccaa8e94ab45b26bd3852cc892878332bee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 30 May 2013 14:37:48 +0200 Subject: [PATCH] Unit conversion factor of RS is not 1 for FIELD units. --- opm/core/io/eclipse/EclipseGridParser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opm/core/io/eclipse/EclipseGridParser.cpp b/opm/core/io/eclipse/EclipseGridParser.cpp index ed4b246c..71cd090d 100644 --- a/opm/core/io/eclipse/EclipseGridParser.cpp +++ b/opm/core/io/eclipse/EclipseGridParser.cpp @@ -558,13 +558,15 @@ void EclipseGridParser::convertToSI() key == "LAMEMOD" || key == "SHEARMOD" || key == "POISSONMOD" || key == "PWAVEMOD" || key == "MULTPV" || key == "PWAVEMOD" || key == "SGAS" || key == "SWAT" || key == "SOIL" || - key == "RS" || key == "SWCR" || key == "SWL" || + key == "SWCR" || key == "SWL" || key == "SWU" || key == "SOWCR" || key == "KRW" || key == "KRWR" || key == "KRORW" || key == "KRO") { unit = 1.0; do_convert = false; // Dimensionless keywords... } else if (key == "PRESSURE") { unit = units_.pressure; + } else if (key == "RS") { + unit = units_.gasvol_s / units_.liqvol_s; } else if (key == "MAPAXES") { MESSAGE("Not applying units to MAPAXES yet!"); unit = 1.0;