From 983b55049fc25758a09493470163a670725f546f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Mon, 19 Mar 2012 14:35:13 +0100 Subject: [PATCH] Fixed and documented constructor taking ParameterGroup. --- opm/core/fluid/RockCompressibility.cpp | 4 ++-- opm/core/fluid/RockCompressibility.hpp | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/opm/core/fluid/RockCompressibility.cpp b/opm/core/fluid/RockCompressibility.cpp index bb6863c29..dac8c37ce 100644 --- a/opm/core/fluid/RockCompressibility.cpp +++ b/opm/core/fluid/RockCompressibility.cpp @@ -31,8 +31,8 @@ namespace Opm : pref_(0.0), rock_comp_(0.0) { - pref_ = param.getDefault("rock_compressibility_pref", 100*unit::barsa); - pref_ = param.getDefault("rock_compressibility", 0.0); + pref_ = param.getDefault("rock_compressibility_pref", 100.0)*unit::barsa; + rock_comp_ = param.getDefault("rock_compressibility", 0.0)/unit::barsa; } RockCompressibility::RockCompressibility(const EclipseGridParser& deck) diff --git a/opm/core/fluid/RockCompressibility.hpp b/opm/core/fluid/RockCompressibility.hpp index bcba5aa56..5ae1a9ba4 100644 --- a/opm/core/fluid/RockCompressibility.hpp +++ b/opm/core/fluid/RockCompressibility.hpp @@ -35,6 +35,9 @@ namespace Opm RockCompressibility(const EclipseGridParser& deck); /// Construct from parameters. + /// Accepts the following parameters (with defaults). + /// rock_compressibility_pref (100.0) [given in bar] + /// rock_compressibility (0.0) [given in bar^{-1}] RockCompressibility(const parameter::ParameterGroup& param); /// Porosity multiplier.