mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-02 05:49:09 -06:00
Merge pull request #5046 from blattms/comm-exception-wetgaspvt-sat-pressure
[fix,MPI] Handle exception during assembleWellEqWithoutIteration correctly
This commit is contained in:
commit
a52877081e
@ -1516,10 +1516,17 @@ namespace Opm {
|
||||
BlackoilWellModel<TypeTag>::
|
||||
assembleWellEqWithoutIteration(const double dt, DeferredLogger& deferred_logger)
|
||||
{
|
||||
// We make sure that all processes throw in case there is an exception
|
||||
// on one of them (WetGasPvt::saturationPressure might throw if not converged)
|
||||
OPM_BEGIN_PARALLEL_TRY_CATCH();
|
||||
|
||||
for (auto& well: well_container_) {
|
||||
well->assembleWellEqWithoutIteration(ebosSimulator_, dt, this->wellState(), this->groupState(),
|
||||
deferred_logger);
|
||||
}
|
||||
OPM_END_PARALLEL_TRY_CATCH_LOG(deferred_logger, "BlackoilWellModel::assembleWellEqWithoutIteration failed: ",
|
||||
terminal_output_, grid().comm());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user