Implemented rock interface in terms of RockFromDeck.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-01-05 15:39:13 +01:00
parent 41edcce7d5
commit ee87a73edc

View File

@ -36,19 +36,19 @@ namespace Opm
/// \return D, the number of spatial dimensions. /// \return D, the number of spatial dimensions.
int BlackoilPropertiesFromDeck::numDimensions() const int BlackoilPropertiesFromDeck::numDimensions() const
{ {
return 3; return rock_.numDimensions();
} }
/// \return N, the number of cells. /// \return N, the number of cells.
int BlackoilPropertiesFromDeck::numCells() const int BlackoilPropertiesFromDeck::numCells() const
{ {
return -1; return rock_.numCells();
} }
/// \return Array of N porosity values. /// \return Array of N porosity values.
const double* BlackoilPropertiesFromDeck::porosity() const const double* BlackoilPropertiesFromDeck::porosity() const
{ {
return 0; return rock_.porosity();
} }
/// \return Array of ND^2 permeability values. /// \return Array of ND^2 permeability values.
@ -56,7 +56,7 @@ namespace Opm
/// which is symmetric (so ordering does not matter). /// which is symmetric (so ordering does not matter).
const double* BlackoilPropertiesFromDeck::permeability() const const double* BlackoilPropertiesFromDeck::permeability() const
{ {
return 0; return rock_.permeability();
} }