From b452d16f46b1c41ba060c2711da96432ca9bd1de Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Tue, 19 Sep 2017 11:16:34 +0200 Subject: [PATCH] Fix parallell run --- opm/autodiff/StandardWellsDense_impl.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/autodiff/StandardWellsDense_impl.hpp b/opm/autodiff/StandardWellsDense_impl.hpp index 2514c2bce..ba9d59204 100644 --- a/opm/autodiff/StandardWellsDense_impl.hpp +++ b/opm/autodiff/StandardWellsDense_impl.hpp @@ -45,13 +45,13 @@ namespace Opm { // has to be set always for the convergence check! global_nc_ = global_nc; + phase_usage_ = phase_usage_arg; + active_ = active_arg; + if ( ! localWellsActive() ) { return; } - phase_usage_ = phase_usage_arg; - active_ = active_arg; - calculateEfficiencyFactors(); #ifndef NDEBUG