Last change
on this file since 1534 was
300,
checked in by ymipsl, 12 years ago
|
nouvelle version de developpement de xios
- nouvelle interface fortran
- recodage complet de la couche de communication
- et bien d'autres choses...
YM
|
File size:
1.0 KB
|
Line | |
---|
1 | #ifndef __SERVER_YM__HPP__ |
---|
2 | #define __SERVER_YM__HPP__ |
---|
3 | |
---|
4 | #include "xmlioserver_spl.hpp" |
---|
5 | #include "context.hpp" |
---|
6 | #include <mpi.h> |
---|
7 | |
---|
8 | namespace xmlioserver |
---|
9 | { |
---|
10 | namespace ym |
---|
11 | { |
---|
12 | class CServer |
---|
13 | { |
---|
14 | public: |
---|
15 | |
---|
16 | static void initialize(void) ; |
---|
17 | static void finalize(void) ; |
---|
18 | static void eventLoop(void) ; |
---|
19 | static void contextEventLoop(void) ; |
---|
20 | static void listenContext(void) ; |
---|
21 | static void listenFinalize(void) ; |
---|
22 | static void recvContextMessage(void* buff,int count) ; |
---|
23 | static void listenRootContext(void) ; |
---|
24 | static void listenRootFinalize(void) ; |
---|
25 | static void registerContext(void* buff,int count, int leaderRank=0) ; |
---|
26 | |
---|
27 | static MPI_Comm intraComm ; |
---|
28 | static list<MPI_Comm> interComm ; |
---|
29 | |
---|
30 | struct contextMessage |
---|
31 | { |
---|
32 | int nbRecv ; |
---|
33 | int leaderRank ; |
---|
34 | } ; |
---|
35 | |
---|
36 | static bool isRoot ; |
---|
37 | static int rank ; |
---|
38 | static map<string,CContext*> contextList ; |
---|
39 | static bool finished ; |
---|
40 | static bool is_MPI_Initialized ; |
---|
41 | } ; |
---|
42 | } |
---|
43 | } |
---|
44 | |
---|
45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.