mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
Make code clearer with and if-else-if statements and spaces.
This commit is contained in:
parent
50eab88274
commit
602310541e
@ -217,13 +217,16 @@ void WellsManager::createWellsFromSpecs(std::vector<WellConstPtr>& wells, size_t
|
||||
wells_on_proc[wellIter-wells.begin()] = 0;
|
||||
continue;
|
||||
}
|
||||
// Check that the complete well is on this process
|
||||
if( sum_completions_on_proc < completionSet->size() )
|
||||
else
|
||||
{
|
||||
std::size_t missing = completionSet->size()-shut_completions_number-sum_completions_on_proc;
|
||||
OPM_THROW(std::runtime_error, "Each well must be completely stored "
|
||||
<<"on one process! Not the case for "<< well->name()<<": "
|
||||
<<missing<<" completions missing.");
|
||||
// Check that the complete well is on this process
|
||||
if ( sum_completions_on_proc < completionSet->size() )
|
||||
{
|
||||
std::size_t missing = completionSet->size()-sum_completions_on_proc;
|
||||
OPM_THROW(std::runtime_error, "Each well must be completely stored "
|
||||
<< "on one process! Not the case for " << well->name() << ": "
|
||||
<< missing << " completions missing.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user