Changeset 594 for XIOS/trunk/src/node/distribution_client.cpp
- Timestamp:
- 05/26/15 16:13:45 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/distribution_client.cpp
r584 r594 183 183 idx = 0; 184 184 185 isDataDistributed_ = false; 185 186 // Update all the vectors above 186 187 while (idx < numElement_) … … 217 218 dataNIndex_.at(idx) = domList[domIndex]->data_n_index.getValue(); 218 219 dataDims_.at(idx) = domList[domIndex]->data_dim.getValue(); 220 221 isDataDistributed_ |= domList[domIndex]->isDistributed(); 222 219 223 ++domIndex; 220 224 } … … 233 237 dataNIndex_.at(idx) = axisList[axisIndex]->data_index.numElements(); 234 238 dataDims_.at(idx) = 1; 239 240 isDataDistributed_ |= axisList[axisIndex]->isDistributed(); 241 235 242 ++axisIndex; 236 243 } … … 239 246 readDomainIndex(domList); 240 247 readAxisIndex(axisList); 241 242 // Grid has only one axis and it is not distributed243 bool isDataNotDistributed = true;244 for (int i = 0; i < this->dims_; ++i)245 isDataNotDistributed &= (nLocal_[i] == nGlob_[i]);246 isDataDistributed_ = !isDataNotDistributed;247 248 } 248 249
Note: See TracChangeset
for help on using the changeset viewer.