Skip to content

Class TempLat::MPIGuard

ClassList > TempLat > MPIGuard

A class which guards intialization and finalization of pure MPI. Only used by SessionGuard , which manually calls its destructor, but which also holds the FFTW and other guards.More...

  • #include <mpiguard.h>

Public Functions

Type Name
MPIGuard (int argc, char ** argv, bool verbose=false)
~MPIGuard ()

Public Static Functions

Type Name
int GetInstanceCount ()
Get the current instance count. Used by tests to check if an instance is already active. This is a test helper - production code should not rely on this.

Detailed Description

Unit test: ctest -R test-mpiguard

Public Functions Documentation

function MPIGuard

inline TempLat::MPIGuard::MPIGuard (
    int argc,
    char ** argv,
    bool verbose=false
) 

function ~MPIGuard

inline TempLat::MPIGuard::~MPIGuard () 

Public Static Functions Documentation

function GetInstanceCount

Get the current instance count. Used by tests to check if an instance is already active. This is a test helper - production code should not rely on this.

static inline int TempLat::MPIGuard::GetInstanceCount () 



The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/parallel/mpi/session/mpiguard.h