Last change
on this file since 457 was
382,
checked in by ymipsl, 12 years ago
|
embed MPI header to avoid some porting problem
YM
|
File size:
1.0 KB
|
Line | |
---|
1 | #ifndef __SERVER_HPP__ |
---|
2 | #define __SERVER_HPP__ |
---|
3 | |
---|
4 | #include "xmlioserver_spl.hpp" |
---|
5 | #include "context.hpp" |
---|
6 | #include "mpi.hpp" |
---|
7 | |
---|
8 | namespace xios |
---|
9 | { |
---|
10 | class CServer |
---|
11 | { |
---|
12 | public: |
---|
13 | |
---|
14 | static void initialize(void) ; |
---|
15 | static void finalize(void) ; |
---|
16 | static void eventLoop(void) ; |
---|
17 | static void contextEventLoop(void) ; |
---|
18 | static void listenContext(void) ; |
---|
19 | static void listenFinalize(void) ; |
---|
20 | static void recvContextMessage(void* buff,int count) ; |
---|
21 | static void listenRootContext(void) ; |
---|
22 | static void listenRootFinalize(void) ; |
---|
23 | static void registerContext(void* buff,int count, int leaderRank=0) ; |
---|
24 | |
---|
25 | static MPI_Comm intraComm ; |
---|
26 | static list<MPI_Comm> interComm ; |
---|
27 | |
---|
28 | struct contextMessage |
---|
29 | { |
---|
30 | int nbRecv ; |
---|
31 | int leaderRank ; |
---|
32 | } ; |
---|
33 | |
---|
34 | static bool isRoot ; |
---|
35 | static int rank ; |
---|
36 | static map<string,CContext*> contextList ; |
---|
37 | static bool finished ; |
---|
38 | static bool is_MPI_Initialized ; |
---|
39 | } ; |
---|
40 | } |
---|
41 | |
---|
42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.