Last change
on this file since 421 was
382,
checked in by ymipsl, 12 years ago
|
embed MPI header to avoid some porting problem
YM
|
File size:
1.0 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: |
---|
| 12 | |
---|
| 13 | static string rootFile ; |
---|
| 14 | static string xiosCodeId ; |
---|
| 15 | |
---|
| 16 | static void initialize(void) ; |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | static void initClientSide(const string & codeId, MPI_Comm& localComm, MPI_Comm& returnComm) ; |
---|
| 20 | static void initServerSide(void) ; |
---|
| 21 | static void clientFinalize(void) ; |
---|
[346] | 22 | static void parseFile(const string& filename) ; |
---|
[300] | 23 | |
---|
| 24 | template <typename T> |
---|
[311] | 25 | static T getin(const string& id,const T& defaultValue) ; |
---|
| 26 | |
---|
| 27 | template <typename T> |
---|
[300] | 28 | static T getin(const string& id) ; |
---|
| 29 | |
---|
| 30 | static bool isClient ; |
---|
| 31 | static bool isServer ; |
---|
| 32 | |
---|
| 33 | static MPI_Comm globalComm ; |
---|
| 34 | |
---|
| 35 | static bool usingOasis ; |
---|
| 36 | static bool usingServer ; |
---|
[317] | 37 | static size_t bufferSize ; |
---|
| 38 | static size_t defaultBufferSize ; |
---|
| 39 | static double bufferServerFactorSize ; |
---|
| 40 | static double defaultBufferServerFactorSize ; |
---|
[300] | 41 | |
---|
| 42 | } ; |
---|
[352] | 43 | |
---|
[300] | 44 | } |
---|
| 45 | |
---|
[352] | 46 | //#include "cxios_impl.hpp" |
---|
[300] | 47 | |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.