Fixed and documented constructor taking ParameterGroup.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-03-19 14:35:13 +01:00
parent e239c1d209
commit 983b55049f
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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.