From ee87a73edca81433596b5a8028c396c50ea0e23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 5 Jan 2012 15:39:13 +0100 Subject: [PATCH] Implemented rock interface in terms of RockFromDeck. --- opm/core/fluid/BlackoilPropertiesFromDeck.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opm/core/fluid/BlackoilPropertiesFromDeck.cpp b/opm/core/fluid/BlackoilPropertiesFromDeck.cpp index 3c126f3f5..178e4823d 100644 --- a/opm/core/fluid/BlackoilPropertiesFromDeck.cpp +++ b/opm/core/fluid/BlackoilPropertiesFromDeck.cpp @@ -36,19 +36,19 @@ namespace Opm /// \return D, the number of spatial dimensions. int BlackoilPropertiesFromDeck::numDimensions() const { - return 3; + return rock_.numDimensions(); } /// \return N, the number of cells. int BlackoilPropertiesFromDeck::numCells() const { - return -1; + return rock_.numCells(); } /// \return Array of N porosity values. const double* BlackoilPropertiesFromDeck::porosity() const { - return 0; + return rock_.porosity(); } /// \return Array of ND^2 permeability values. @@ -56,7 +56,7 @@ namespace Opm /// which is symmetric (so ordering does not matter). const double* BlackoilPropertiesFromDeck::permeability() const { - return 0; + return rock_.permeability(); }