Changeset 964


Ignore:
Timestamp:
10/04/16 19:01:44 (8 years ago)
Author:
mhnguyen
Message:

Ticket 108: Fixing distribution condition of an axis

+) Make sure an axis having n == n_glo be non-distributed

Test
+) OK

File:
1 edited

Legend:

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

    r927 r964  
    213213      StdSize size = this->n_glo.getValue(); 
    214214 
    215       isDistributed_ = !this->begin.isEmpty() || !this->n.isEmpty(); 
    216  
    217215      if (!this->begin.isEmpty()) 
    218216      { 
     
    232230      } 
    233231      else this->n.setValue(size); 
     232 
     233      isDistributed_ = (!this->begin.isEmpty() && !this->n.isEmpty() && (this->begin + this->n < this->n_glo)) || 
     234                       (!this->n.isEmpty() && (this->n != this->n_glo)); 
    234235 
    235236      if (!this->value.isEmpty()) 
Note: See TracChangeset for help on using the changeset viewer.