Changeset 1021 for XIOS/dev/dev_olga/src/node/grid.cpp
- Timestamp:
- 01/10/17 14:36:29 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/node/grid.cpp
r1009 r1021 299 299 } 300 300 301 this->isChecked = true; 301 // this->isChecked = true; 302 if (!(this->hasTransform() && !this->isTransformed())) 303 this->isChecked = true; 302 304 return; 303 305 } … … 316 318 this->computeIndex(); 317 319 } 318 this->isChecked = true; 320 // this->isChecked = true; 321 if (!(this->hasTransform() && !this->isTransformed())) 322 this->isChecked = true; 323 324 if (!(this->hasTransform() && (!this->isGenerated()))) 325 this->isChecked = true; 319 326 } 320 327 } … … 1094 1101 } 1095 1102 1103 storeIndex_fromSrv.insert(std::make_pair(rank, CArray<int,1>(outLocalIndexToServer))); 1096 1104 listMsg.push_back(CMessage()); 1097 1105 listMsg.back() << getId( )<< isDataDistributed_ << isCompressible_ << listOutIndex.back(); … … 1102 1110 } 1103 1111 else 1112 { 1113 const std::list<int>& ranks = client->getRanksServerNotLeader(); 1114 for (std::list<int>::const_iterator itRank = ranks.begin(), itRankEnd = ranks.end(); itRank != itRankEnd; ++itRank) 1115 { 1116 int rank = *itRank; 1117 int nb = 1; 1118 storeIndex_fromSrv.insert(std::make_pair(rank, CArray<int,1>(nb))); 1119 CArray<int, 1>& outLocalIndexToServer = storeIndex_fromSrv[rank]; 1120 for (int k = 0; k < nb; ++k) 1121 { 1122 outLocalIndexToServer(k) = 0; 1123 } 1124 } 1104 1125 client->sendEvent(event); 1126 } 1105 1127 } 1106 1128 } … … 1136 1158 } 1137 1159 1138 //int nbClient = client->clientSize; // This stupid variable signals the servers the number of client connect to them1139 1160 const std::list<int>& ranks = client->getRanksServerLeader(); 1140 1161 for (std::list<int>::const_iterator itRank = ranks.begin(), itRankEnd = ranks.end(); itRank != itRankEnd; ++itRank) 1141 1162 { 1142 1163 storeIndex_toSrv.insert(std::make_pair(*itRank, CArray<int,1>(outLocalIndexToServer))); 1164 storeIndex_fromSrv.insert(std::make_pair(*itRank, CArray<int,1>(outLocalIndexToServer))); 1143 1165 listOutIndex.push_back(CArray<size_t,1>(outGlobalIndexOnServer)); 1144 1166 … … 1151 1173 } 1152 1174 else 1153 client->sendEvent(event); 1175 { 1176 int indexSize = globalLocalIndexSendToServer.size(); 1177 CArray<int,1> outLocalIndexToServer(indexSize); 1178 for (int idx = 0; itIndex != iteIndex; ++itIndex, ++idx) 1179 { 1180 outLocalIndexToServer(idx) = itIndex->second; 1181 } 1182 1183 const std::list<int>& ranks = client->getRanksServerNotLeader(); 1184 for (std::list<int>::const_iterator itRank = ranks.begin(), itRankEnd = ranks.end(); itRank != itRankEnd; ++itRank) 1185 { 1186 storeIndex_fromSrv.insert(std::make_pair(*itRank, CArray<int,1>(outLocalIndexToServer))); 1187 } 1188 client->sendEvent(event); 1189 } 1154 1190 } 1155 1191 else … … 1177 1213 } 1178 1214 1179 //for (int ns = 0; ns < connectedServerRank_.size(); ++ns)1180 for (int ns = 0; ns < client->serverSize; ++ns)1215 for (int ns = 0; ns < connectedServerRank_.size(); ++ns) 1216 // for (int ns = 0; ns < client->serverSize; ++ns) 1181 1217 { 1182 1218 rank = connectedServerRank_[ns]; … … 1197 1233 } 1198 1234 1235 storeIndex_fromSrv.insert(make_pair(rank, CArray<int,1>(outLocalIndexToServer))); 1199 1236 listMsg.push_back(CMessage()); 1200 1237 listMsg.back() << getId() << isDataDistributed_ << isCompressible_ << listOutIndex.back();
Note: See TracChangeset
for help on using the changeset viewer.