From 50eab88274f040dc8460f680008f2d10853c47a0 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 8 Sep 2015 10:48:14 +0200 Subject: [PATCH] Improve code comments. --- opm/core/wells/WellsManager_impl.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opm/core/wells/WellsManager_impl.hpp b/opm/core/wells/WellsManager_impl.hpp index fdd36821f..01053201b 100644 --- a/opm/core/wells/WellsManager_impl.hpp +++ b/opm/core/wells/WellsManager_impl.hpp @@ -205,9 +205,12 @@ void WellsManager::createWellsFromSpecs(std::vector& wells, size_t } if ( is_parallel_run_ ) { - // Set wells that are on other processor to SHUT. + // sum_completions_on_proc includes completions + // that are shut std::size_t sum_completions_on_proc = std::accumulate(completion_on_proc.begin(), completion_on_proc.end(),0); + // Set wells that are not on this processor to SHUT. + // A well is not here if only shut completions are found. if ( sum_completions_on_proc == shut_completions_number ) { // Mark well as not existent on this process