Opened 8 years ago

Closed 8 years ago

#33 closed defect (fixed)

bugfix in attribute_array_impl.hpp?

Reported by: smasson Owned by: ymipsl
Priority: major Component: XIOS
Version: 1.0 Keywords:
Cc:

Description

Should the following bugfix be commited?

-bash-4.1$ svn diff
Index: src/attribute_array_impl.hpp
===================================================================
--- src/attribute_array_impl.hpp        (revision 446)
+++ src/attribute_array_impl.hpp        (working copy)
@@ -75,8 +75,12 @@
     template <typename T_numtype, int N_rank>
     void CAttributeArray<T_numtype,N_rank>::setInheritedValue(const CAttributeArray& attr)
     {
-      if (this->isEmpty() && attr.hasInheritedValue()) inheritedValue=attr ;
-     } 
+      if (this->isEmpty() && attr.hasInheritedValue()) 
+      {
+        inheritedValue.resize(attr.shape()) ;
+        inheritedValue=attr ;
+      }
+    } 
 
     template <typename T_numtype, int N_rank>
     CArray<T_numtype,N_rank> CAttributeArray<T_numtype,N_rank>::getInheritedValue(void) const

Change History (2)

comment:1 Changed 8 years ago by ymipsl

  • Status changed from new to assigned

comment:2 Changed 8 years ago by ymipsl

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r447

Note: See TracTickets for help on using tickets.