Dear all, Thank you very much for your responses, it helped me to better understand my problem. Currently the most annoying cases are file IO, which are rather fast, so writing a barrier will not hurt too much. bool hasFailed = ......; if (grid.comm().sum(hasFailed) > 0) { DUNE_THROW(......); } Regards, Aleksejs