fix assert statement

This commit is contained in:
Tor Harald Sandve 2021-01-21 11:50:17 +01:00
parent e55568a646
commit f9552a2081

View File

@ -264,7 +264,7 @@ public:
// if diffusion coefficient table is empty we relay on the PVT model to
// to give us the coefficients.
diffusionCoefficients_.resize(numRegions,{0,0,0,0,0,0,0,0,0});
assert(diffCoeffTable.size() == numRegions);
assert(diffCoeffTables.size() == numRegions);
for (unsigned regionIdx = 0; regionIdx < numRegions; ++regionIdx) {
const auto& diffCoeffTable = diffCoeffTables[regionIdx];
molarMass_[regionIdx][oilCompIdx] = diffCoeffTable.oil_mw;