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

    r2146 r2305  
    113113    bool CAttributeArray<T_numtype,N_rank>::isEqual_(const CAttributeArray& attr) 
    114114    { 
    115       if ((!this->hasInheritedValue() && !attr.hasInheritedValue())) 
    116           return true; 
    117       if (this->hasInheritedValue() && attr.hasInheritedValue()) 
    118           return (this->getInheritedValue() == attr.getInheritedValue()); 
    119       else  
    120         return false;       
     115      if (this->isEmpty() && attr.isEmpty()) return true ; 
     116      if (!this->isEmpty() && !attr.isEmpty())  return (this->getValue() == attr.getValue()); 
     117      else return false;   
    121118    } 
    122119 
Note: See TracChangeset for help on using the changeset viewer.