Ignore:
Timestamp:
05/26/15 16:13:45 (9 years ago)
Author:
rlacroix
Message:

Change the definition of non distributed axis and domain.

Axis and domain were considered non distributed if the local domain matched the full domain. Instead allow the local domain definition to be ommited and consider the axis or domain to be non distributed in this case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/distribution_client.cpp

    r584 r594  
    183183  idx = 0; 
    184184 
     185  isDataDistributed_ = false; 
    185186  // Update all the vectors above 
    186187  while (idx < numElement_) 
     
    217218      dataNIndex_.at(idx) = domList[domIndex]->data_n_index.getValue(); 
    218219      dataDims_.at(idx) = domList[domIndex]->data_dim.getValue(); 
     220 
     221      isDataDistributed_ |= domList[domIndex]->isDistributed(); 
     222 
    219223      ++domIndex; 
    220224    } 
     
    233237      dataNIndex_.at(idx) = axisList[axisIndex]->data_index.numElements(); 
    234238      dataDims_.at(idx) = 1; 
     239 
     240      isDataDistributed_ |= axisList[axisIndex]->isDistributed(); 
     241 
    235242      ++axisIndex; 
    236243    } 
     
    239246  readDomainIndex(domList); 
    240247  readAxisIndex(axisList); 
    241  
    242   // Grid has only one axis and it is not distributed 
    243   bool isDataNotDistributed = true; 
    244   for (int i = 0; i < this->dims_; ++i) 
    245     isDataNotDistributed &= (nLocal_[i] == nGlob_[i]); 
    246   isDataDistributed_ = !isDataNotDistributed; 
    247248} 
    248249 
Note: See TracChangeset for help on using the changeset viewer.