ls1-MarDyn
ls1-MarDyn molecular dynamics code
MPI_Info_object.h
1#ifndef MPI_INFO_OBJECT_H
2#define MPI_INFO_OBJECT_H
3
4#ifdef ENABLE_MPI
5
6#include <string>
7
8#include <mpi.h>
9
10#include "utils/xmlfile.h"
11
15public:
17 : _mpi_info(MPI_INFO_NULL)
18 {}
20
29 void readXML(XMLfile& xmlconfig);
30
32 void reset();
34 void add_hint(std::string& key, std::string& value);
36 void get_dup_MPI_Info(MPI_Info* mpi_info);
37 operator MPI_Info() const { return _mpi_info; }
38
39private:
40 MPI_Info _mpi_info;
41};
42
43#endif // ENABLE_MPI
44
45#endif // MPI_INFO_OBJECT_H
46
MPI Info object implements functionalities to handle MPI Info objects, e.g. initialize from a XML fil...
Definition: MPI_Info_object.h:14
void reset()
reset MPI info object
Definition: MPI_Info_object.cpp:12
void add_hint(std::string &key, std::string &value)
Add a hint key value pair.
Definition: MPI_Info_object.cpp:38
void readXML(XMLfile &xmlconfig)
read key value pairs to be set in the MPI info object
Definition: MPI_Info_object.cpp:18
void get_dup_MPI_Info(MPI_Info *mpi_info)
Obtains the MPI info object as a duplicate of the internal one.
Definition: MPI_Info_object.cpp:51
XML file abstraction.
Definition: xmlfile.h:47
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
Definition: vtk-punstructured.h:270
XML input file.