Guard grid communication by capability check
In places where we call the grid interface communicate (grid.communicate(...)
), we should always check if the grid supports this capability (canCommunicate<Grid, codim>
). Depending on the code, it might be either appropriate to silently step over the communication call or to throw an exception.
!2444 (merged) Introduces common/gridcapabilities.hh
which has a helper canCommunicate
in the namespace Dumux::Detail
to implement such checks.