OGS
BaseLib::MPI::Setup Struct Reference

Detailed Description

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

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

◆ ~Setup()

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

Definition at line 34 of file MPI.h.

35 {
36#ifdef USE_PETSC
37 MPI_Finalize();
38#endif // USE_PETSC
39 }

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