Remove pvtTableIdx_ from BlackoilPropsAdFromDeck.

It was not used by the properties, this commit also fixes the bug that
pvtTableIdx_ was initialized instead of cellPvtRegionIdx_.
This commit is contained in:
Atgeirr Flø Rasmussen
2015-02-26 13:25:14 +01:00
parent ba86dc191c
commit 635fea1cad
3 changed files with 11 additions and 25 deletions

View File

@@ -90,7 +90,6 @@ BlackoilPropsAdFromDeck::BlackoilPropsAdFromDeck(const BlackoilPropsAdFromDeck&
// For data that is dependant on the subgrid we simply allocate space
// and initialize with obviously bogus numbers.
cellPvtRegionIdx_.resize(number_of_cells, std::numeric_limits<int>::min());
pvtTableIdx_.resize(number_of_cells, std::numeric_limits<int>::min());
}
/// Initializes the properties.
@@ -139,7 +138,7 @@ BlackoilPropsAdFromDeck::BlackoilPropsAdFromDeck(const BlackoilPropsAdFromDeck&
// first, calculate the PVT table index for each compressed
// cell. This array is required to construct the PVT classes
// below.
Opm::extractPvtTableIndex(pvtTableIdx_,
Opm::extractPvtTableIndex(cellPvtRegionIdx_,
deck,
number_of_cells,
global_cell);