source: CONFIG_DEVT/IPSLCM6.5_work_ENSEMBLES/modeles/XIOS/src/interface/c/oasis_cinterface.hpp @ 5861

Last change on this file since 5861 was 5861, checked in by ymipsl, 3 years ago
  • Adapt XIOS sources to manage ensemble runs, using new version of oasis

YM

File size: 1008 bytes
Line 
1#ifndef __OASIS_CINTERFACE__
2#define __OASIS_CINTERFACE__
3#include <string>
4#include <vector>
5#include "mpi.hpp"
6
7extern "C"
8{
9
10  void fxios_oasis_init(const char* server_id,int str_len) ;
11  void fxios_oasis_enddef(void) ;
12  void fxios_oasis_finalize(void) ;
13  void fxios_oasis_get_localcomm(MPI_Fint* f_comm) ;
14  void fxios_oasis_get_intracomm(MPI_Fint* f_comm_client_server,const char* client_id,int str_len) ;
15  void fxios_oasis_get_intercomm(MPI_Fint* f_comm_client_server,const char* client_id,int str_len) ;
16}
17 
18namespace xios
19{
20  void oasis_init(const std::string& server_id) ;
21  void oasis_enddef(void) ;
22  void oasis_finalize(void) ;
23  void oasis_get_localcomm(MPI_Comm& comm) ;
24  void oasis_get_intracomm(MPI_Comm& comm_client_server,const std::string& server_id) ;
25  void oasis_get_intercomm(MPI_Comm& comm_client_server,const std::string& server_id) ;
26  void oasis_get_multi_intracomm(MPI_Comm& comm_clients_server,const std::vector<std::string>& codesId, std::vector<int>& rootRanks) ;
27}
28#endif
Note: See TracBrowser for help on using the repository browser.