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

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