Changeset 447 for XIOS/trunk


Ignore:
Timestamp:
07/18/13 18:11:25 (11 years ago)
Author:
ymipsl
Message:

bugfix : array was corretcly resized

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/attribute_array_impl.hpp

    r445 r447  
    7676    void CAttributeArray<T_numtype,N_rank>::setInheritedValue(const CAttributeArray& attr) 
    7777    { 
    78       if (this->isEmpty() && attr.hasInheritedValue()) inheritedValue=attr ; 
    79      }  
     78      if (this->isEmpty() && attr.hasInheritedValue())  
     79      { 
     80        inheritedValue.resize(attr.shape()) ; 
     81        inheritedValue=attr ; 
     82      } 
     83    }  
    8084 
    8185    template <typename T_numtype, int N_rank> 
Note: See TracChangeset for help on using the changeset viewer.