source: XIOS/trunk/src/cxios.hpp @ 491

Last change on this file since 491 was 491, checked in by mhnguyen, 8 years ago

Removing using_server from iodef.xml file. From now on, XIOS is capable of dectectin automatically server mode

+) Check whether server is in the MPI global group
+) Add some more methods to set/unset using_server
+) Do some cleaning stuff

Test
+) On Curie
+) All test passed correctly without using_server id

File size: 1.2 KB
Line 
1#ifndef __XIOS_HPP__
2#define __XIOS_HPP__
3
4#include "xmlioserver_spl.hpp"
5#include "mpi.hpp"
6
7namespace xios
8{
9  class CXios
10  {
11     public:
12
13     static string rootFile ;
14     static string xiosCodeId ;
15     static string infoFile;
16
17     static void initialize(void) ;
18
19
20     static void initClientSide(const string & codeId, MPI_Comm& localComm, MPI_Comm& returnComm) ;
21     static void initServerSide(void) ;
22     static void clientFinalize(void) ;
23     static void parseFile(const string& filename) ;
24
25     template <typename T>
26     static T getin(const string& id,const T& defaultValue) ;
27
28     template <typename T>
29     static T getin(const string& id) ;
30
31     static bool isClient ;
32     static bool isServer ;
33
34     static MPI_Comm globalComm ;
35
36     static bool printInfo2File;
37     static bool usingOasis ;
38     static bool usingServer ;
39     static size_t bufferSize ;
40     static size_t defaultBufferSize ;
41     static double bufferServerFactorSize ;
42     static double defaultBufferServerFactorSize ;
43
44     public:
45      //! Setting xios to use server mode
46      static void setUsingServer();
47
48      //! Setting xios NOT to use server mode
49      static void setNotUsingServer();
50
51  } ;
52
53}
54
55//#include "cxios_impl.hpp"
56
57
58
59
60
61
62
63
64
65#endif
Note: See TracBrowser for help on using the repository browser.