XIOS  1.0
Xml I/O Server
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Définitions de type Énumérations Valeurs énumérées Amis Macros
oasis_cinterface.cpp
Aller à la documentation de ce fichier.
1 #include "oasis_cinterface.hpp"
2 #include <string>
3 #include "mpi.hpp"
4 
5 namespace xios
6 {
7 
8  void oasis_init(const std::string& server_id)
9  {
10  fxios_oasis_init(server_id.data(),server_id.size()) ;
11  }
12 
13  void oasis_finalize(void)
14  {
16  }
17 
18  void oasis_enddef(void)
19  {
21  }
22 
23  void oasis_get_localcomm(MPI_Comm& comm)
24  {
25  MPI_Fint f_comm ;
26 
27  fxios_oasis_get_localcomm(&f_comm) ;
28  comm=MPI_Comm_f2c(f_comm) ;
29  }
30 
31  void oasis_get_intracomm(MPI_Comm& comm_client_server,const std::string& server_id)
32  {
33  MPI_Fint f_comm ;
34 
35  fxios_oasis_get_intracomm(&f_comm,server_id.data(),server_id.size()) ;
36  comm_client_server=MPI_Comm_f2c(f_comm) ;
37  }
38 
39  void oasis_get_intercomm(MPI_Comm& comm_client_server,const std::string& server_id)
40  {
41  MPI_Fint f_comm ;
42 
43  fxios_oasis_get_intercomm(&f_comm,server_id.data(),server_id.size()) ;
44  comm_client_server=MPI_Comm_f2c(f_comm) ;
45  }
46 }
void fxios_oasis_enddef(void)
void oasis_finalize(void)
#define xios(arg)
void oasis_get_intercomm(MPI_Comm &comm_client_server, const std::string &server_id)
void oasis_get_intracomm(MPI_Comm &comm_client_server, const std::string &server_id)
void fxios_oasis_get_intercomm(MPI_Fint *f_comm_client_server, const char *client_id, int str_len)
void oasis_init(const std::string &server_id)
void fxios_oasis_finalize(void)
void fxios_oasis_init(const char *server_id, int str_len)
void fxios_oasis_get_localcomm(MPI_Fint *f_comm)
void oasis_enddef(void)
void oasis_get_localcomm(MPI_Comm &comm)
void fxios_oasis_get_intracomm(MPI_Fint *f_comm_client_server, const char *client_id, int str_len)