OGS
BaseLib::MPI::Setup Struct Reference

Detailed Description

Definition at line 28 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 30 of file MPI.h.

31 {
32#ifdef USE_PETSC
33 MPI_Init(&argc, &argv);
34#else
35 (void)argc;
36 (void)argv;
37#endif // USE_PETSC
38 }

◆ ~Setup()

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

Definition at line 40 of file MPI.h.

41 {
42#ifdef USE_PETSC
43 MPI_Finalize();
44#endif // USE_PETSC
45 }

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