From 20318826c86616e889a8fac543a343be8049e0fc Mon Sep 17 00:00:00 2001 From: "Halvor M. Nilsen" Date: Wed, 20 Jun 2012 13:11:13 +0200 Subject: [PATCH] Changed default for relperm to not set. --- opm/core/fluid/SaturationPropsBasic.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opm/core/fluid/SaturationPropsBasic.cpp b/opm/core/fluid/SaturationPropsBasic.cpp index 0f97e7c0..4f20bd1b 100644 --- a/opm/core/fluid/SaturationPropsBasic.cpp +++ b/opm/core/fluid/SaturationPropsBasic.cpp @@ -113,9 +113,12 @@ namespace Opm THROW("SaturationPropsBasic::init() illegal num_phases: " << num_phases); } num_phases_ = num_phases; - std::string rpf = param.getDefault("relperm_func", std::string("Linear")); + std::string rpf = param.getDefault("relperm_func", std::string("Unset")); if (rpf == "Constant") { relperm_func_ = Constant; + if(num_phases!=1){ + THROW("Constant relperm with more than one phase???"); + } } else if (rpf == "Linear") { relperm_func_ = Linear; } else if (rpf == "Quadratic") {