CollectiveCheck.hpp File Reference

Make all MPI ranks agree on whether a piece of work failed. More...

#include <functional>
#include <stdexcept>
Include dependency graph for CollectiveCheck.hpp:

Go to the source code of this file.

Classes

class  Opm::CollectiveFailure
 Exception thrown on every rank when at least one rank failed. More...
 

Namespaces

namespace  Opm
 

Functions

void Opm::collectiveCheck (const std::function< void()> &work)
 Run a unit of work on all ranks and agree on its outcome. More...
 
void Opm::abortParallelRun (int exitCode)
 Terminate all ranks because this rank cannot continue. More...
 

Detailed Description

Make all MPI ranks agree on whether a piece of work failed.