Changeset 1129 for XIOS/dev/dev_olga/src/node/domain.hpp
- Timestamp:
- 05/11/17 18:25:20 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/node/domain.hpp
r1099 r1129 51 51 EVENT_ID_INDEX, EVENT_ID_LON, EVENT_ID_LAT, 52 52 EVENT_ID_AREA, EVENT_ID_MASK, 53 EVENT_ID_DATA_INDEX, EVENT_ID_SERVER_ATTRIBUT 53 EVENT_ID_DATA_INDEX, EVENT_ID_SERVER_ATTRIBUT, 54 EVENT_ID_INDEX_ZOOM 54 55 } ; 55 56 … … 106 107 107 108 std::map<int, StdSize> getAttributesBufferSize(); 109 CArray<size_t,1> localIndexToWriteOnServer; 108 110 109 111 bool isEmpty(void) const; … … 127 129 void completeLonLatClient(void); 128 130 void computeConnectedClients(); 131 void computeWrittenIndex(); 129 132 130 133 void AllgatherRectilinearLonLat(CArray<double,1>& lon, CArray<double,1>& lat, … … 138 141 static void recvDistributionAttributes(CEventServer& event); 139 142 static void recvIndex(CEventServer& event); 143 static void recvIndexZoom(CEventServer& event); 140 144 static void recvMask(CEventServer& event); 141 145 static void recvZoom(CEventServer& event); … … 144 148 static void recvArea(CEventServer& event); 145 149 static void recvDataIndex(CEventServer& event); 146 void recvDistributionAttributes(CBufferIn& buffer); 147 void recvZoom(std::vector<int>& rank, std::vector<CBufferIn*>& buffers); 150 void recvDistributionAttributes(CBufferIn& buffer); 148 151 void recvIndex(std::map<int, CBufferIn*>& rankBuffers); 152 void recvIndexZoom(std::map<int, CBufferIn*>& rankBuffers); 149 153 void recvMask(std::map<int, CBufferIn*>& rankBuffers); 150 154 void recvLon(std::map<int, CBufferIn*>& rankBuffers); … … 192 196 void sendArea(); 193 197 void sendLonLat(); 194 void send Zoom();198 void sendIndexZoom(); 195 199 void sendDataIndex(); 200 201 void convertLonLatValue(); 196 202 197 203 private: … … 202 208 203 209 bool doZoomByIndex_; 204 bool isChecked ;210 bool isChecked, computedWrittenIndex_; 205 211 std::set<StdString> relFiles, relFilesCompressed; 206 212 bool isClientChecked; // Verify whether all attributes of domain on the client side are good 207 213 bool isClientAfterTransformationChecked; 208 std::map<int, CArray<int,1> > indiSrv, indjSrv, indGlob_ ;214 std::map<int, CArray<int,1> > indiSrv, indjSrv, indGlob_, indGlobZoom_; 209 215 std::map<int,int> nbConnectedClients_, nbConnectedClientsZoom_; // Mapping of number of communicating client to a server 210 216 … … 213 219 std::map<int, vector<int> > indWrittenSrv_; // Global written index of each client sent to server 214 220 std::vector<int> indexesToWrite; 215 std::vector<int> recvClientRanks_ ;221 std::vector<int> recvClientRanks_, recvClientZoomRanks_; 216 222 int numberWrittenIndexes_, totalNumberWrittenIndexes_, offsetWrittenIndexes_; 217 std::vector<int> connectedServerRank_ ;223 std::vector<int> connectedServerRank_, connectedServerZoomRank_; 218 224 bool isDistributed_; 219 225 //! True if and only if the data defined on the domain can be outputted in a compressed way … … 222 228 TransMapTypes transformationMap_; 223 229 bool isUnstructed_; 224 boost::unordered_map<size_t,size_t> globalLocalIndexMap_ ;230 boost::unordered_map<size_t,size_t> globalLocalIndexMap_, globalLocalIndexZoomMap_; 225 231 226 232 private:
Note: See TracChangeset
for help on using the changeset viewer.