[MOAB-dev] r4961 - MOAB/trunk/src/io

xbxu at mcs.anl.gov xbxu at mcs.anl.gov
Tue Jun 7 11:55:20 CDT 2011


Author: xbxu
Date: 2011-06-07 11:55:19 -0500 (Tue, 07 Jun 2011)
New Revision: 4961

Modified:
   MOAB/trunk/src/io/ReadNC.cpp
Log:
add PARTITION_METHOD tag

Modified: MOAB/trunk/src/io/ReadNC.cpp
===================================================================
--- MOAB/trunk/src/io/ReadNC.cpp	2011-06-07 14:43:24 UTC (rev 4960)
+++ MOAB/trunk/src/io/ReadNC.cpp	2011-06-07 16:55:19 UTC (rev 4961)
@@ -1331,6 +1331,13 @@
     }
   }
   
+  // <PARTITION_METHOD>
+  Tag partMethodTag = 0;  
+  tag_name = "PARTITION_METHOD";
+  rval = mbImpl->tag_get_handle(tag_name.c_str(), 1, MB_TYPE_INTEGER, partMethodTag, MB_TAG_SPARSE|MB_TAG_CREAT, &partMethod);
+  ERRORR(rval, "Trouble creating PARTITION_METHOD tag.");
+  if (MB_SUCCESS == rval) dbgOut.tprintf(2, "Tag created for variable %s\n", tag_name.c_str());    
+  
   return MB_SUCCESS;
 }
 



































More information about the moab-dev mailing list