Ignore:
Timestamp:
03/08/22 12:30:26 (2 years ago)
Author:
ymipsl
Message:

Fix bug when calling to "xios_solve_inheritance" that inhibit transformation chaining.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/attribute_enum_impl.hpp

    r2146 r2305  
    121121  bool CAttributeEnum<T>::isEqual_(const CAttributeEnum& attr) 
    122122  { 
    123     if ((!this->hasInheritedValue() && !attr.hasInheritedValue())) 
    124         return true; 
    125     if (this->hasInheritedValue() && attr.hasInheritedValue()) 
    126         return (this->getInheritedValue() == attr.getInheritedValue()); 
    127     else  
    128       return false;     
     123    if (this->isEmpty() && attr.isEmpty()) return true ; 
     124    if (!this->isEmpty() && !attr.isEmpty())  return (this->getValue() == attr.getValue()); 
     125    else return false; 
    129126  } 
    130127 
Note: See TracChangeset for help on using the changeset viewer.