Changeset 2633


Ignore:
Timestamp:
05/29/24 19:26:04 (3 weeks ago)
Author:
ymipsl
Message:

Fix misfunction of "_reset_" for attributes when using field_ref.
YM

Location:
XIOS3/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/attribute.hpp

    r2629 r2633  
    7272 
    7373            bool canInherite(void) {return _canInherite ;} 
     74            bool setCannotInherit(void) {_canInherite=false ;} 
     75            bool setCanInherit(void) {_canInherite=true ;} 
    7476         protected :  
    7577            bool _canInherite ; 
  • XIOS3/trunk/src/attribute_map.cpp

    r2471 r2633  
    240240                    this->setAttribute(el.first, el.second); 
    241241                 } 
     242                 else if (currentAtt->isEmpty() && currentAtt->canInherite() && el.second->isEmpty() && !el.second->canInherite()) 
     243                 { 
     244                    currentAtt->setCannotInherit() ; // propagate non-inheritance 
     245                 } 
    242246               } 
    243247               else currentAtt->setInheritedValue(*parentAtt); 
Note: See TracChangeset for help on using the changeset viewer.