Make sure we (re-)throw MatrixBlockError also in the serial case.

This commit is contained in:
Atgeirr Flø Rasmussen 2018-04-24 14:32:43 +02:00
parent e012363abc
commit f9c1fbcbe6

View File

@ -464,7 +464,9 @@ protected:
}
// 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();
}