From a31aa46744e63bf68255588cfb0fd0199abab9bb Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 5 May 2015 19:14:27 +0200 Subject: [PATCH] Send all phases for surface volume and saturation. Previously, we only did send the information for the first phase which led to computing wrong values in a simulation. With this patch we now send all the data for all the phases. --- opm/autodiff/RedistributeDataHandles.hpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/opm/autodiff/RedistributeDataHandles.hpp b/opm/autodiff/RedistributeDataHandles.hpp index 30aecdebe..fcba01bc9 100644 --- a/opm/autodiff/RedistributeDataHandles.hpp +++ b/opm/autodiff/RedistributeDataHandles.hpp @@ -73,8 +73,10 @@ public: buffer.write(sendState_.rv()[e.index()]); buffer.write(sendState_.pressure()[e.index()]); buffer.write(sendState_.temperature()[e.index()]); - buffer.write(sendState_.saturation()[e.index()]); - + for ( int i=0; i