[Dune] DUNE_THROW behaviour in parallel

Aleksejs Fomins aleksejs.fomins at lspr.swiss
Tue Nov 8 14:12:19 CET 2016


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





More information about the Dune mailing list