source: XIOS/dev/dev_trunk_graph/src/mpi_tools.hpp @ 2138

Last change on this file since 2138 was 2137, checked in by yushan, 3 years ago

temporal commit for merging graph into XIOS_coupling

  • Property svn:executable set to *
File size: 671 bytes
RevLine 
[2019]1#ifndef __XIOS_MPI_TOOLS_HPP__
2#define __XIOS_MPI_TOOLS_HPP__
3
4#include <string>
5
6namespace xios
7{
8
9  int MPI_Bcast_string(std::string& str, int root, MPI_Comm comm) ;
10
11  template<typename T> 
12  MPI_Datatype MPI_GetType(void) ;
13
14  template<>
[2137]15  MPI_Datatype MPI_GetType<char>(void);
[2019]16
17  template<>
[2137]18  MPI_Datatype MPI_GetType<short int>(void);
[2019]19
20  template<>
[2137]21  MPI_Datatype MPI_GetType<int>(void);
[2019]22
23  template<>
[2137]24  MPI_Datatype MPI_GetType<size_t>(void);
[2019]25
26  template<>
[2137]27  MPI_Datatype MPI_GetType<float>(void);
[2019]28
29  template<>
[2137]30  MPI_Datatype MPI_GetType<double>(void);
[2019]31
32  template<>
[2137]33  MPI_Datatype MPI_GetType<long double>(void);
[2019]34
35
36} 
[2137]37#endif
Note: See TracBrowser for help on using the repository browser.