Added RockCompressibility::isActive() method.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-03-20 10:15:33 +01:00
parent 2d8cebd6c6
commit 866f539519
2 changed files with 9 additions and 0 deletions

View File

@ -57,6 +57,11 @@ namespace Opm
}
}
bool RockCompressibility::isActive() const
{
return p_.empty() && (rock_comp_ == 0.0);
}
double RockCompressibility::poroMult(double pressure)
{
if (p_.empty()) {

View File

@ -32,6 +32,7 @@ namespace Opm
{
public:
/// Construct from input deck.
/// Looks for the keywords ROCK and ROCKTAB.
RockCompressibility(const EclipseGridParser& deck);
/// Construct from parameters.
@ -40,6 +41,9 @@ namespace Opm
/// rock_compressibility (0.0) [given in bar^{-1}]
RockCompressibility(const parameter::ParameterGroup& param);
/// Returns true if there are compressibility effects.
bool isActive() const;
/// Porosity multiplier.
double poroMult(double pressure);