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/axis.cpp

    r591 r594  
    1717      : CObjectTemplate<CAxis>() 
    1818      , CAxisAttributes(), isChecked(false), relFiles(), baseRefObject(), areClientAttributesChecked_(false) 
     19      , isDistributed_(false) 
    1920   { /* Ne rien faire de plus */ } 
    2021 
     
    2223      : CObjectTemplate<CAxis>(id) 
    2324      , CAxisAttributes(), isChecked(false), relFiles(), baseRefObject(), areClientAttributesChecked_(false) 
     25      , isDistributed_(false) 
    2426   { /* Ne rien faire de plus */ } 
    2527 
     
    3739   { 
    3840      return (this->relFiles.find(filename) != this->relFiles.end()); 
     41   } 
     42 
     43   bool CAxis::isDistributed(void) const 
     44   { 
     45      return isDistributed_; 
    3946   } 
    4047 
     
    5865               << "Attribute <size> of the axis [ id = '" << getId() << "' , context = '" << CObjectFactory::GetCurrentContextId() << "' ] must be specified"); 
    5966      StdSize size = this->size.getValue(); 
     67 
     68      isDistributed_ = !this->ibegin.isEmpty() || !this->ni.isEmpty(); 
    6069 
    6170      if (!this->ibegin.isEmpty()) 
Note: See TracChangeset for help on using the changeset viewer.