[bugfix] Make sure all ranks participate in collective communication.

No need an early return if there are no local wells, anyway. The
algorithms can handle empty containers like a charm.
This commit is contained in:
Markus Blatt 2021-10-08 16:01:18 +02:00
parent 1520f9c85f
commit fc7609bfd2

View File

@ -149,9 +149,6 @@ namespace Opm {
BlackoilWellModel<TypeTag>::
linearize(SparseMatrixAdapter& jacobian, GlobalEqVector& res)
{
if (!localWellsActive())
return;
if (!param_.matrix_add_well_contributions_)
{
OPM_BEGIN_PARALLEL_TRY_CATCH();