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

Last change on this file since 511 was 511, checked in by mhnguyen, 9 years ago

Seperating database of context on "client" side and "server" side

+) Add one more context in contex client in case of attached mode
+) Do some minor changements to make sure everything fine in case of attached mode
+) Replace buffer group with the new options

Test
+) On Curie
+) Connection mode: Attached and seperated
+) File mode: one and multiple
+) All tests passed

  • 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.5 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 clientFile;
16     static string serverFile;
17
18     static void initialize(void) ;
19
20
21     static void initClientSide(const string & codeId, MPI_Comm& localComm, MPI_Comm& returnComm) ;
22     static void initServerSide(void) ;
23     static void clientFinalize(void) ;
24     static void parseFile(const string& filename) ;
25
26     template <typename T>
27     static T getin(const string& id,const T& defaultValue) ;
28
29     template <typename T>
30     static T getin(const string& id) ;
31
32     static bool isClient ;
33     static bool isServer ;
34
35     static MPI_Comm globalComm ;
36
37     static bool printInfo2File;
38     static bool usingOasis ;
39     static bool usingServer ;
40     static size_t bufferSize ;
41     static size_t defaultBufferSize ;
42     static double bufferServerFactorSize ;
43     static double defaultBufferServerFactorSize ;
44     static bool isOptPerformance;
45
46     public:
47     //! Setting xios to use server mode
48     static void setUsingServer();
49
50     //! Setting xios NOT to use server mode
51     static void setNotUsingServer();
52
53      //! A silly variable to detect whether one process is in client or server side. Should be removed on refactoring code
54     static bool isServerSide;
55
56     static  void initServer();
57
58     private:
59      static void parseXiosConfig();
60
61  } ;
62
63}
64
65//#include "cxios_impl.hpp"
66
67
68
69
70
71
72
73
74
75#endif
Note: See TracBrowser for help on using the repository browser.