PRISMS-PF Manual
Loading...
Searching...
No Matches
MPIInitFinalize Class Reference

This class does the boilerplate that precedes and succeeds the simulation. More...

#include <utilities.h>

Inheritance diagram for MPIInitFinalize:
[legend]
Collaboration diagram for MPIInitFinalize:
[legend]

Public Member Functions

 MPIInitFinalize (int &argc, char **&argv, unsigned int _max_n_threads=0)
 
 ~MPIInitFinalize ()
 

Static Private Attributes

static constexpr unsigned int max_n_threads = 1
 Number of threads to try and use.
 

Detailed Description

This class does the boilerplate that precedes and succeeds the simulation.

Note
In this class we initialize MPI, so everything that follows executes per process.

Constructor & Destructor Documentation

◆ MPIInitFinalize()

PRISMS_PF_BEGIN_NAMESPACE MPIInitFinalize::MPIInitFinalize ( int & argc,
char **& argv,
unsigned int _max_n_threads = 0 )

◆ ~MPIInitFinalize()

MPIInitFinalize::~MPIInitFinalize ( )

Member Data Documentation

◆ max_n_threads

unsigned int MPIInitFinalize::max_n_threads = 1
staticconstexprprivate

Number of threads to try and use.

Note
If PRISMS_PF_THREADS=OFF this is always set to 1 unless otherwise specified.

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