mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
Improve code comments.
This commit is contained in:
parent
8b11b7069f
commit
50eab88274
@ -205,9 +205,12 @@ void WellsManager::createWellsFromSpecs(std::vector<WellConstPtr>& 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
|
||||
|
Loading…
Reference in New Issue
Block a user