class gpr::MpiLifetime

Overview

A native entry point finalizes only the MPI world it initializes. More…

#include <managers/MpiLifetime.h>
 
class MpiLifetime {
public:
    // construction
 
    MpiLifetime(int& argc, char**& argv);
    MpiLifetime(const MpiLifetime&);
    ~MpiLifetime();
 
    // methods
 
    MpiLifetime& operator=(const MpiLifetime&);
    void finalize();
    bool borrowed() const;
    static bool& ownedWorldPending();
};

Detailed Documentation

A native entry point finalizes only the MPI world it initializes.

Methods

static bool& ownedWorldPending()

Set when an owned world was left open by an escaping exception.