[cig-commits] r14179 - cs/cigma/trunk/src

luis at geodynamics.org luis at geodynamics.org
Mon Mar 2 08:31:56 PST 2009


Author: luis
Date: 2009-03-02 08:31:56 -0800 (Mon, 02 Mar 2009)
New Revision: 14179

Modified:
   cs/cigma/trunk/src/h5attr.cpp
Log:
Tested .tar.gz file and fixed error in H5Aiterate call

In version 1.6.6, H5Aiterate1 does not exist yet.
Also, always print attribute value (for both set/get).

Modified: cs/cigma/trunk/src/h5attr.cpp
===================================================================
--- cs/cigma/trunk/src/h5attr.cpp	2009-03-01 23:01:19 UTC (rev 14178)
+++ cs/cigma/trunk/src/h5attr.cpp	2009-03-02 16:31:56 UTC (rev 14179)
@@ -355,7 +355,7 @@
 
     opts.add_options()
         ("location,l", po::value<string>(&attr_loc), "Where to store the attribute <file:path>")
-        ("name,n", po::value<string>(&attr_name), "Name of the  attribute")
+        ("name,n", po::value<string>(&attr_name), "Name of the attribute")
         ("value,v", po::value<string>(&attr_value), "Value of the attribute")
         ("type,t", po::value<string>(&attr_dtype), "Type of attribute (default 'string')")
         ;
@@ -479,8 +479,8 @@
             else
             {
                 getattr(obj, attr_name, attr_dtype, attr_value);
-                print_attr(attr_name, attr_dtype, attr_value);
             }
+            print_attr(attr_name, attr_dtype, attr_value);
         }
         else
         {
@@ -561,11 +561,11 @@
                 }
                 #else
                 unsigned int _idx = 0;
-                TRI_LOG_STR("Calling H5Aiterate1");
+                TRI_LOG_STR("Calling H5Aiterate");
                 while (true)
                 {
                     TRI_LOG(_idx);
-                    status = H5Aiterate1(oid, &_idx, listAttrOp00, obj);
+                    status = H5Aiterate(oid, &_idx, listAttrOp00, obj);
                     TRI_LOG(status);
                     if (status <= 0) { break; }
                 }



More information about the CIG-COMMITS mailing list