source:
vendors/XIOS/current/src/server.hpp
@
4508
Last change on this file since 4508 was 3428, checked in by rblod, 12 years ago | |
---|---|
File size: 1.0 KB |
Rev | Line | |
---|---|---|
[3428] | 1 | #ifndef __SERVER_HPP__ |
2 | #define __SERVER_HPP__ | |
3 | ||
4 | #include "xmlioserver_spl.hpp" | |
5 | #include "context.hpp" | |
6 | #include <mpi.h> | |
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.