Fixes StandardWell::allDrawDownWrongDirection for distributed wells.

This commit is contained in:
Markus Blatt 2020-12-14 16:13:11 +01:00
parent a9c327b321
commit 12f5a6aaff

View File

@ -1802,6 +1802,13 @@ namespace Opm
}
}
const auto& comm = this->parallel_well_info_.communication();
if (comm.size() > 1)
{
all_drawdown_wrong_direction =
(comm.min(all_drawdown_wrong_direction ? 1 : 0) == 1);
}
return all_drawdown_wrong_direction;
}