source: XIOS/dev/dev_trunk_omp/src/interface/c/oasis_cinterface.hpp @ 1957

Last change on this file since 1957 was 1745, checked in by yushan, 5 years ago

Generic_testcase: build flag --omp to enable EP with intelmpi. --omp2 to enable EP with openmpi. tested on Irene with compiler=intel17, mpi=intelmpi&openmpi, with and without EP

  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    http://forge.ipsl.jussieu.fr/ioserver
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
    yann.meurdesoif@cea.fr
File size: 1.2 KB
Line 
1#ifndef __OASIS_CINTERFACE__
2#define __OASIS_CINTERFACE__
3#include <string>
4#include "mpi.hpp"
5
6extern "C"
7{
8
9  void fxios_oasis_init(const char* server_id,int str_len) ;
10  void fxios_oasis_enddef(void) ;
11  void fxios_oasis_finalize(void) ;
12#ifdef _usingEP
13  void fxios_oasis_get_localcomm(ep_lib::EP_Fint* f_comm) ;
14  void fxios_oasis_get_intracomm(ep_lib::EP_Fint* f_comm_client_server,const char* client_id,int str_len) ;
15  void fxios_oasis_get_intercomm(ep_lib::EP_Fint* f_comm_client_server,const char* client_id,int str_len) ;
16#else
17  void fxios_oasis_get_localcomm(MPI_Fint* f_comm) ;
18  void fxios_oasis_get_intracomm(MPI_Fint* f_comm_client_server,const char* client_id,int str_len) ;
19  void fxios_oasis_get_intercomm(MPI_Fint* f_comm_client_server,const char* client_id,int str_len) ;
20#endif
21}
22 
23namespace xios
24{
25  void oasis_init(const std::string& server_id) ;
26  void oasis_enddef(void) ;
27  void oasis_finalize(void) ;
28  void oasis_get_localcomm(ep_lib::MPI_Comm& comm) ;
29  void oasis_get_intracomm(ep_lib::MPI_Comm& comm_client_server,const std::string& server_id) ;
30  void oasis_get_intercomm(ep_lib::MPI_Comm& comm_client_server,const std::string& server_id) ;
31
32}
33#endif
Note: See TracBrowser for help on using the repository browser.