Last change
on this file since 511 was
511,
checked in by mhnguyen, 10 years ago
|
Seperating database of context on "client" side and "server" side
+) Add one more context in contex client in case of attached mode
+) Do some minor changements to make sure everything fine in case of attached mode
+) Replace buffer group with the new options
Test
+) On Curie
+) Connection mode: Attached and seperated
+) File mode: one and multiple
+) All tests passed
|
-
Property copyright set to
Software name : XIOS (Xml I/O Server) http://forge.ipsl.jussieu.fr/ioserver Creation date : January 2009 Licence : CeCCIL version2 see license file in root directory : Licence_CeCILL_V2-en.txt or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement) CNRS/IPSL (Institut Pierre Simon Laplace) Project Manager : Yann Meurdesoif yann.meurdesoif@cea.fr
|
File size:
1.3 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 ; |
---|
[509] | 13 | |
---|
[300] | 14 | class CContextClient |
---|
| 15 | { |
---|
[509] | 16 | |
---|
[300] | 17 | public: |
---|
[511] | 18 | CContextClient(CContext* parent,MPI_Comm intraComm, MPI_Comm interComm, CContext* parentServer = 0) ; |
---|
[300] | 19 | // void registerEvent(CEventClient& event) ; |
---|
| 20 | |
---|
[509] | 21 | // list<CBufferOut*> newEvent(CEventClient& event,list<int>& sizes) ; |
---|
[300] | 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 | |
---|
[509] | 43 | void setBufferSize(const std::map<int, StdSize>& mapSize); |
---|
| 44 | void sendBufferSizeEvent(); |
---|
| 45 | |
---|
[345] | 46 | CContext* context ; |
---|
[509] | 47 | |
---|
| 48 | private: |
---|
| 49 | std::map<int, StdSize> mapBufferSize_; |
---|
[511] | 50 | CContext* parentServer; |
---|
[300] | 51 | // bool locked ; |
---|
[509] | 52 | |
---|
[300] | 53 | } ; |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | } |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.