OGS
BaseLib::MPI::Setup Struct Reference

Detailed Description

Definition at line 24 of file MPI.h.

#include <MPI.h>

Public Member Functions

 Setup (int argc, char *argv[])
 
 ~Setup ()
 

Constructor & Destructor Documentation

◆ Setup()

BaseLib::MPI::Setup::Setup ( int argc,
char * argv[] )
inline

Definition at line 26 of file MPI.h.

27 {
28#ifdef USE_PETSC
29 MPI_Init(&argc, &argv);
30#else
31 (void)argc;
32 (void)argv;
33#endif // USE_PETSC
34 }

◆ ~Setup()

BaseLib::MPI::Setup::~Setup ( )
inline

Definition at line 36 of file MPI.h.

37 {
38#ifdef USE_PETSC
39 MPI_Finalize();
40#endif // USE_PETSC
41 }

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