Last change
on this file since 501 was
501,
checked in by ymipsl, 10 years ago
|
Add licence copyright to all file ond directory src using the command :
svn propset -R copyright -F header_licence src
XIOS is now officialy under CeCILL licence
YM
|
-
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.4 KB
|
Rev | Line | |
---|
[300] | 1 | #ifndef __XIOS_HPP__ |
---|
| 2 | #define __XIOS_HPP__ |
---|
| 3 | |
---|
| 4 | #include "xmlioserver_spl.hpp" |
---|
[382] | 5 | #include "mpi.hpp" |
---|
[300] | 6 | |
---|
[335] | 7 | namespace xios |
---|
[300] | 8 | { |
---|
| 9 | class CXios |
---|
| 10 | { |
---|
| 11 | public: |
---|
[490] | 12 | |
---|
[300] | 13 | static string rootFile ; |
---|
| 14 | static string xiosCodeId ; |
---|
[499] | 15 | static string clientFile; |
---|
| 16 | static string serverFile; |
---|
[490] | 17 | |
---|
[300] | 18 | static void initialize(void) ; |
---|
[490] | 19 | |
---|
| 20 | |
---|
[300] | 21 | static void initClientSide(const string & codeId, MPI_Comm& localComm, MPI_Comm& returnComm) ; |
---|
| 22 | static void initServerSide(void) ; |
---|
| 23 | static void clientFinalize(void) ; |
---|
[346] | 24 | static void parseFile(const string& filename) ; |
---|
[490] | 25 | |
---|
[300] | 26 | template <typename T> |
---|
[311] | 27 | static T getin(const string& id,const T& defaultValue) ; |
---|
[490] | 28 | |
---|
[311] | 29 | template <typename T> |
---|
[300] | 30 | static T getin(const string& id) ; |
---|
| 31 | |
---|
| 32 | static bool isClient ; |
---|
| 33 | static bool isServer ; |
---|
| 34 | |
---|
[490] | 35 | static MPI_Comm globalComm ; |
---|
| 36 | |
---|
| 37 | static bool printInfo2File; |
---|
[300] | 38 | static bool usingOasis ; |
---|
[490] | 39 | static bool usingServer ; |
---|
[317] | 40 | static size_t bufferSize ; |
---|
| 41 | static size_t defaultBufferSize ; |
---|
| 42 | static double bufferServerFactorSize ; |
---|
| 43 | static double defaultBufferServerFactorSize ; |
---|
[490] | 44 | |
---|
[491] | 45 | public: |
---|
[499] | 46 | //! Setting xios to use server mode |
---|
| 47 | static void setUsingServer(); |
---|
[490] | 48 | |
---|
[499] | 49 | //! Setting xios NOT to use server mode |
---|
| 50 | static void setNotUsingServer(); |
---|
[491] | 51 | |
---|
[499] | 52 | //! A silly variable to detect whether one process is in client or server side. Should be removed on refactoring code |
---|
| 53 | static bool isServerSide; |
---|
| 54 | |
---|
[300] | 55 | } ; |
---|
[352] | 56 | |
---|
[300] | 57 | } |
---|
| 58 | |
---|
[352] | 59 | //#include "cxios_impl.hpp" |
---|
[300] | 60 | |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.