Changeset 1158 for XIOS/dev/dev_olga/src/attribute_array_impl.hpp
- Timestamp:
- 06/06/17 17:58:16 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/attribute_array_impl.hpp
r778 r1158 83 83 void CAttributeArray<T_numtype,N_rank>::setInheritedValue(const CAttributeArray& attr) 84 84 { 85 if (this->isEmpty() && attr.hasInheritedValue())85 if (this->isEmpty() && _canInherite && attr.hasInheritedValue()) 86 86 { 87 87 inheritedValue.resize(attr.shape()) ; … … 103 103 } 104 104 105 template <typename T_numtype, int N_rank> 106 bool CAttributeArray<T_numtype,N_rank>::isEqual(const CAttributeArray& attr) 107 { 108 return ((dynamic_cast<CArray<T_numtype,N_rank>& >(*this)) == (dynamic_cast<const CArray<T_numtype,N_rank>& >(attr))); 109 } 110 111 template <typename T_numtype, int N_rank> 112 bool CAttributeArray<T_numtype,N_rank>::isEqual(const CAttribute& attr) 113 { 114 return ((*this) == (dynamic_cast<const CAttributeArray<T_numtype,N_rank>& >(attr))); 115 } 105 116 106 117 template <typename T_numtype, int N_rank>
Note: See TracChangeset
for help on using the changeset viewer.