mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1465 from atgeirr/fix-ilu-serial
Make sure we (re-)throw MatrixBlockError also in the serial case.
This commit is contained in:
commit
45023f304e
@ -464,7 +464,9 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check whether there was a problem on some process
|
// Check whether there was a problem on some process
|
||||||
if ( comm_ && comm_->communicator().min(ilu_setup_successful) == 0 )
|
const bool parallel_failure = comm_ && comm_->communicator().min(ilu_setup_successful) == 0;
|
||||||
|
const bool local_failure = ilu_setup_successful == 0;
|
||||||
|
if ( local_failure || parallel_failure )
|
||||||
{
|
{
|
||||||
throw Dune::MatrixBlockError();
|
throw Dune::MatrixBlockError();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user