From ff669bc32bfe9051f2a8037d186f28072068279d Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 1 Sep 2015 20:20:16 +0200 Subject: [PATCH] [bugfix] Correctl resize satOilMax in a parallel run. Previously, we tried to make an empty container bigger by resizing it with its current size. Of course this is wrong and does not change anything. With this commit we use the size of another container which already has the correct size. --- opm/autodiff/RedistributeDataHandles.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opm/autodiff/RedistributeDataHandles.hpp b/opm/autodiff/RedistributeDataHandles.hpp index 32fa018ee..2f6377b15 100644 --- a/opm/autodiff/RedistributeDataHandles.hpp +++ b/opm/autodiff/RedistributeDataHandles.hpp @@ -245,9 +245,10 @@ public: size_(1) { // satOilMax might be non empty. In this case we will need to send it, too. + // It has to have the same size as the cellPvtRegionIdx_ if ( sendProps.satOilMax_.size()>0 ) { - recvProps_.satOilMax_.resize(recvProps_.satOilMax_.size(), + recvProps_.satOilMax_.resize(recvProps_.cellPvtRegionIdx_.size(), -std::numeric_limits::max()); ++size_; }