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_template_impl.hpp

    r2146 r2305  
    165165    bool CAttributeTemplate<T>::isEqual_(const CAttributeTemplate& attr) 
    166166    { 
    167       if ((!this->hasInheritedValue() && !attr.hasInheritedValue())) 
    168           return true; 
    169       if (this->hasInheritedValue() && attr.hasInheritedValue()) 
    170           return (this->getInheritedValue() == attr.getInheritedValue()); 
    171       else  
    172         return false; 
     167      if (this->isEmpty() && attr.isEmpty()) return true ; 
     168      if (!this->isEmpty() && !attr.isEmpty())  return (this->getValue() == attr.getValue()); 
     169      else return false; 
    173170    } 
    174171 
Note: See TracChangeset for help on using the changeset viewer.