From 8568f9f3f98132b57d987c50a5b10be486f3d2a3 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Tue, 13 May 2014 15:21:55 +0200 Subject: [PATCH] add an assert --- opm/core/props/BlackoilPropertiesFromDeck.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/opm/core/props/BlackoilPropertiesFromDeck.cpp b/opm/core/props/BlackoilPropertiesFromDeck.cpp index 71246f9c..2a2a020a 100644 --- a/opm/core/props/BlackoilPropertiesFromDeck.cpp +++ b/opm/core/props/BlackoilPropertiesFromDeck.cpp @@ -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 pvtTableIdx(n); for (int i = 0; i < n; ++ i) pvtTableIdx[i] = cellPvtTableIdx[cells[i]];