|
Last change
on this file since 3848 was
3848,
checked in by ymipsl, 10 years ago
|
|
Add XIOS in Aquaplanet configuration.
YM
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 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" |
|---|
| 8 | #include "mpi.hpp" |
|---|
| 9 | |
|---|
| 10 | namespace xios |
|---|
| 11 | { |
|---|
| 12 | class CContext ; |
|---|
| 13 | |
|---|
| 14 | class CContextClient |
|---|
| 15 | { |
|---|
| 16 | |
|---|
| 17 | public: |
|---|
| 18 | CContextClient(CContext* parent,MPI_Comm intraComm, MPI_Comm interComm) ; |
|---|
| 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 | |
|---|
| 43 | CContext* context ; |
|---|
| 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.