[MOAB-dev] r1412 - MOAB/trunk

tautges at mcs.anl.gov tautges at mcs.anl.gov
Mon Nov 19 14:54:52 CST 2007


Author: tautges
Date: 2007-11-19 14:54:52 -0600 (Mon, 19 Nov 2007)
New Revision: 1412

Modified:
   MOAB/trunk/DualTool.cpp
Log:
Another 64-bit fix to get qvdual working on that platform.


Modified: MOAB/trunk/DualTool.cpp
===================================================================
--- MOAB/trunk/DualTool.cpp	2007-11-19 18:23:50 UTC (rev 1411)
+++ MOAB/trunk/DualTool.cpp	2007-11-19 20:54:52 UTC (rev 1412)
@@ -59,27 +59,28 @@
 DualTool::DualTool(MBInterface *impl) 
     : mbImpl(impl)
 {
-  int dummy = 0;
+  MBEntityHandle dum_handle = 0;
 
   MBErrorCode result = mbImpl->tag_create(DUAL_SURFACE_TAG_NAME, sizeof(MBEntityHandle), 
                                           MB_TAG_SPARSE, 
-                                          dualSurfaceTag, &dummy);
+                                          dualSurfaceTag, &dum_handle);
   assert(MB_ALREADY_ALLOCATED == result || MB_SUCCESS == result);
   
   result = mbImpl->tag_create(DUAL_CURVE_TAG_NAME, sizeof(MBEntityHandle), MB_TAG_SPARSE, 
-                              dualCurveTag, &dummy);
+                              dualCurveTag, &dum_handle);
   assert(MB_ALREADY_ALLOCATED == result || MB_SUCCESS == result);
   
+  unsigned int dummy = 0;
   result = mbImpl->tag_create(IS_DUAL_CELL_TAG_NAME, sizeof(unsigned int), MB_TAG_SPARSE, 
                               isDualCellTag, &dummy);
   assert(MB_ALREADY_ALLOCATED == result || MB_SUCCESS == result);
 
   result = mbImpl->tag_create(DUAL_ENTITY_TAG_NAME, sizeof(MBEntityHandle), MB_TAG_DENSE, 
-                              dualEntityTag, &dummy);
+                              dualEntityTag, &dum_handle);
   assert(MB_ALREADY_ALLOCATED == result || MB_SUCCESS == result);
 
   result = mbImpl->tag_create(EXTRA_DUAL_ENTITY_TAG_NAME, sizeof(MBEntityHandle), MB_TAG_SPARSE, 
-                              extraDualEntityTag, &dummy);
+                              extraDualEntityTag, &dum_handle);
   assert(MB_ALREADY_ALLOCATED == result || MB_SUCCESS == result);
   
   static const char dum_name[CATEGORY_TAG_SIZE] = "\0";
@@ -93,8 +94,9 @@
                               dualGraphicsPointTag, &dum_pt);
   assert(MB_ALREADY_ALLOCATED == result || MB_SUCCESS == result);
 
+  int dum_int = 0;
   result = mbImpl->tag_create(GLOBAL_ID_TAG_NAME, sizeof(int), MB_TAG_DENSE, 
-                              globalIdTag, &dummy);
+                              globalIdTag, &dum_int);
   assert(MB_ALREADY_ALLOCATED == result || MB_SUCCESS == result);
 }
 




More information about the moab-dev mailing list