mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Currently we run into issues with the parallel AMG if redistribution happened on the coarsest level. That is not detected by AMG and it will construct smoothers on all processors present before the redistribution. Some of them will get OwnerOverlapCommunication objects that have an invalid MPI communicator in them (MPI_COMM_NULL) and an MPI_ERROR will be raised as we communicate in the constructor. With this patch we detect this situaton and set the pointer to OwnerOverlapCommunication to null to prevent communication. A sanity check that the matrix has zero rows has been added.