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:
Kai Bao 2018-05-08 10:39:15 +02:00 committed by GitHub
commit 45023f304e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}