From f9bb897f15f44bc0cb9f53ee9b7f289757a01b40 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Mon, 7 Oct 2019 15:17:36 +0200 Subject: [PATCH] fix bug in PLYROCK --- opm/models/blackoil/blackoilpolymermodules.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/opm/models/blackoil/blackoilpolymermodules.hh b/opm/models/blackoil/blackoilpolymermodules.hh index 6c3f7e9d4..145a684d7 100644 --- a/opm/models/blackoil/blackoilpolymermodules.hh +++ b/opm/models/blackoil/blackoilpolymermodules.hh @@ -157,11 +157,11 @@ public: for (unsigned satRegionIdx = 0; satRegionIdx < numSatRegions; ++ satRegionIdx) { const auto& plyrockTable = plyrockTables.template getTable(satRegionIdx); setPlyrock(satRegionIdx, - plyrockTable.getDeadPoreVolumeColumn()[satRegionIdx], - plyrockTable.getResidualResistanceFactorColumn()[satRegionIdx], - plyrockTable.getRockDensityFactorColumn()[satRegionIdx], - static_cast(plyrockTable.getAdsorbtionIndexColumn()[satRegionIdx]), - plyrockTable.getMaxAdsorbtionColumn()[satRegionIdx]); + plyrockTable.getDeadPoreVolumeColumn()[0], + plyrockTable.getResidualResistanceFactorColumn()[0], + plyrockTable.getRockDensityFactorColumn()[0], + static_cast(plyrockTable.getAdsorbtionIndexColumn()[0]), + plyrockTable.getMaxAdsorbtionColumn()[0]); } } else {