mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add an assert
This commit is contained in:
@@ -104,6 +104,7 @@ namespace Opm
|
|||||||
OPM_THROW(std::runtime_error, "BlackoilPropertiesFromDeck::viscosity() -- derivatives of viscosity not yet implemented.");
|
OPM_THROW(std::runtime_error, "BlackoilPropertiesFromDeck::viscosity() -- derivatives of viscosity not yet implemented.");
|
||||||
} else {
|
} else {
|
||||||
const int *cellPvtTableIdx = cellPvtRegionIndex();
|
const int *cellPvtTableIdx = cellPvtRegionIndex();
|
||||||
|
assert(cellPvtTableIdx != 0);
|
||||||
std::vector<int> pvtTableIdx(n);
|
std::vector<int> pvtTableIdx(n);
|
||||||
for (int i = 0; i < n; ++ i)
|
for (int i = 0; i < n; ++ i)
|
||||||
pvtTableIdx[i] = cellPvtTableIdx[cells[i]];
|
pvtTableIdx[i] = cellPvtTableIdx[cells[i]];
|
||||||
|
|||||||
Reference in New Issue
Block a user