DFT-EFE
 
Loading...
Searching...
No Matches
dftefe::utils::mpi::Types< T > Struct Template Reference

A simple struct to return the MPIDatatype based on the user provided primitive data type (e.g., int, double, char, etc) More...

#include <MPITypes.h>

Static Public Member Functions

static MPIDatatype getMPIDatatype ()
 

Detailed Description

template<typename T>
struct dftefe::utils::mpi::Types< T >

A simple struct to return the MPIDatatype based on the user provided primitive data type (e.g., int, double, char, etc)

Template Parameters
TC++ primitive datatype, such as int, double, char, etc.
Note
The template parameter T cannot be std::string, as string is not a standalone datatype supported in MPI.
: For efficient use of memory Types<T> has only a static member function Types<T>::getMPIDatatype() that returns the appropriate mpi::MPIDatatype based on the template parameter T. Further, for efficiency (compile time evaluation), we specialize the Types<T> class for various primitive C++ datatypes that are supported

Member Function Documentation

◆ getMPIDatatype()

template<typename T >
MPIDatatype dftefe::utils::mpi::Types< T >::getMPIDatatype
static

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