add an assert

This commit is contained in:
Andreas Lauser 2014-05-13 15:21:55 +02:00
parent 2545b423fc
commit 8568f9f3f9

View File

@ -104,6 +104,7 @@ namespace Opm
OPM_THROW(std::runtime_error, "BlackoilPropertiesFromDeck::viscosity() -- derivatives of viscosity not yet implemented.");
} else {
const int *cellPvtTableIdx = cellPvtRegionIndex();
assert(cellPvtTableIdx != 0);
std::vector<int> pvtTableIdx(n);
for (int i = 0; i < n; ++ i)
pvtTableIdx[i] = cellPvtTableIdx[cells[i]];