[MOAB-dev] r5247 - MOAB/trunk/test/h5file

iulian at mcs.anl.gov iulian at mcs.anl.gov
Thu Dec 8 15:40:21 CST 2011


Author: iulian
Date: 2011-12-08 15:40:21 -0600 (Thu, 08 Dec 2011)
New Revision: 5247

Modified:
   MOAB/trunk/test/h5file/dump_sets.c
Log:
bug in determining the width for formatting 
the max_id is determined after the file is opened



Modified: MOAB/trunk/test/h5file/dump_sets.c
===================================================================
--- MOAB/trunk/test/h5file/dump_sets.c	2011-12-08 20:00:09 UTC (rev 5246)
+++ MOAB/trunk/test/h5file/dump_sets.c	2011-12-08 21:40:21 UTC (rev 5247)
@@ -32,13 +32,13 @@
     return 1;
   }
   
+  file = mhdf_openFile( argv[1], 0, &max_id, -1, &status ); CHECK;
+  
   WIDTH = 1;
   while (max_id > 10) {
     max_id /= 10;
     ++WIDTH;
   }
-  
-  file = mhdf_openFile( argv[1], 0, &max_id, -1, &status ); CHECK;
   dump_sets( file );
   mhdf_closeFile( file, &status ); CHECK;
   return 0;

































More information about the moab-dev mailing list