Ignore:
Timestamp:
02/16/16 10:14:30 (8 years ago)
Author:
mhnguyen
Message:

Correcting the behavior of field_ref

+) If a field refers to another one via field_ref and there is no transformation between
grid of this field and one of refered field, this field will inherit attributes from field_ref.

Test
+) On Curie
+) All tests pass

File:
1 edited

Legend:

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

    r823 r824  
    3232      , transformations_(0), isTransformed_(false) 
    3333      , axisPositionInGrid_(), positionDimensionDistributed_(1), hasDomainAxisBaseRef_(false) 
    34       , gridSrc_() 
     34      , gridSrc_(), hasTransform_(false) 
    3535   { 
    3636     setVirtualDomainGroup(); 
     
    4747      , transformations_(0), isTransformed_(false) 
    4848      , axisPositionInGrid_(), positionDimensionDistributed_(1), hasDomainAxisBaseRef_(false) 
    49       , gridSrc_() 
     49      , gridSrc_(), hasTransform_(false) 
    5050   { 
    5151     setVirtualDomainGroup(); 
     
    14081408    transformations_ = new CGridTransformation(this, transformGridSrc); 
    14091409    transformations_->computeAll(); 
     1410    if (0 < transformations_->getNbAlgo()) hasTransform_ = true; 
    14101411 
    14111412    // Ok, now need to compute index of grid source 
    14121413    transformGridSrc->checkMaskIndex(false); 
     1414  } 
     1415 
     1416  bool CGrid::hasTransform() 
     1417  { 
     1418    return hasTransform_; 
    14131419  } 
    14141420 
Note: See TracChangeset for help on using the changeset viewer.