From f9552a20818e20b07df26f8c3314a1c79b37cfb7 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Thu, 21 Jan 2021 11:50:17 +0100 Subject: [PATCH] fix assert statement --- opm/material/fluidsystems/BlackOilFluidSystem.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/material/fluidsystems/BlackOilFluidSystem.hpp b/opm/material/fluidsystems/BlackOilFluidSystem.hpp index cc9ea5226..d49ef015f 100644 --- a/opm/material/fluidsystems/BlackOilFluidSystem.hpp +++ b/opm/material/fluidsystems/BlackOilFluidSystem.hpp @@ -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;