Last change
on this file since 467 was
382,
checked in by ymipsl, 12 years ago
|
embed MPI header to avoid some porting problem
YM
|
File size:
1.1 KB
|
Rev | Line | |
---|
[300] | 1 | #ifndef __CONTEXT_CLIENT_HPP__ |
---|
| 2 | #define __CONTEXT_CLIENT_HPP__ |
---|
| 3 | |
---|
| 4 | #include "xmlioserver_spl.hpp" |
---|
| 5 | #include "buffer_out.hpp" |
---|
| 6 | #include "buffer_client.hpp" |
---|
| 7 | #include "event_client.hpp" |
---|
[382] | 8 | #include "mpi.hpp" |
---|
[300] | 9 | |
---|
[335] | 10 | namespace xios |
---|
[300] | 11 | { |
---|
[345] | 12 | class CContext ; |
---|
[300] | 13 | |
---|
| 14 | class CContextClient |
---|
| 15 | { |
---|
| 16 | |
---|
| 17 | public: |
---|
[345] | 18 | CContextClient(CContext* parent,MPI_Comm intraComm, MPI_Comm interComm) ; |
---|
[300] | 19 | // void registerEvent(CEventClient& event) ; |
---|
| 20 | |
---|
| 21 | // list<CBufferOut*> newEvent(CEventClient& event,list<int>& sizes) ; |
---|
| 22 | void sendEvent(CEventClient& event) ; |
---|
| 23 | |
---|
| 24 | list<CBufferOut*> getBuffers(list<int>& serverlist, list<int>& sizeList) ; |
---|
| 25 | void newBuffer(int rank) ; |
---|
| 26 | size_t timeLine ; |
---|
| 27 | int clientRank ; |
---|
| 28 | int clientSize ; |
---|
| 29 | int serverSize ; |
---|
| 30 | // set<int> connectedServer ; |
---|
| 31 | MPI_Comm interComm ; |
---|
| 32 | MPI_Comm intraComm ; |
---|
| 33 | map<int,CClientBuffer*> buffers ; |
---|
| 34 | bool checkBuffers(list<int>& ranks) ; |
---|
| 35 | bool checkBuffers(void); |
---|
| 36 | void releaseBuffers(void); |
---|
| 37 | void closeContext(void) ; |
---|
| 38 | bool isServerLeader(void) ; |
---|
| 39 | int getServerLeader(void) ; |
---|
| 40 | void finalize(void) ; |
---|
| 41 | void waitEvent(list<int>& ranks) ; |
---|
| 42 | |
---|
[345] | 43 | CContext* context ; |
---|
[300] | 44 | // bool locked ; |
---|
| 45 | |
---|
| 46 | } ; |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.