Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::MpiAutoInit Class Reference

Singleton class to automatically call MPI_Init and MPI_Finalize if necessary. MPI_Finalize is only called if we performed the init ourselves. More...

Collaboration diagram for Arcane::MpiAutoInit:

Public Member Functions

void initialize (int *argc, char ***argv, int wanted_thread_level)
void finalize ()

Private Attributes

bool m_need_finalize = false

Detailed Description

Singleton class to automatically call MPI_Init and MPI_Finalize if necessary. MPI_Finalize is only called if we performed the init ourselves.

Definition at line 97 of file ArcaneMpi.cc.

Member Function Documentation

◆ finalize()

void Arcane::MpiAutoInit::finalize ( )
inline

Definition at line 118 of file ArcaneMpi.cc.

◆ initialize()

void Arcane::MpiAutoInit::initialize ( int * argc,
char *** argv,
int wanted_thread_level )
inline

Definition at line 105 of file ArcaneMpi.cc.

Member Data Documentation

◆ m_need_finalize

bool Arcane::MpiAutoInit::m_need_finalize = false
private

Definition at line 128 of file ArcaneMpi.cc.


The documentation for this class was generated from the following file: