[MOAB-dev] r4299 - MOAB/trunk/examples

tautges at mcs.anl.gov tautges at mcs.anl.gov
Tue Nov 23 13:34:46 CST 2010


Author: tautges
Date: 2010-11-23 13:34:46 -0600 (Tue, 23 Nov 2010)
New Revision: 4299

Modified:
   MOAB/trunk/examples/FileRead.cpp
Log:
Small change to how vertex handles are computed.



Modified: MOAB/trunk/examples/FileRead.cpp
===================================================================
--- MOAB/trunk/examples/FileRead.cpp	2010-11-23 17:25:24 UTC (rev 4298)
+++ MOAB/trunk/examples/FileRead.cpp	2010-11-23 19:34:46 UTC (rev 4299)
@@ -117,13 +117,14 @@
 	continue;
       }
       stringstream tokens(line);
-      int eleId, node;
+      int eleId;
+      unsigned int node;
       tokens >> eleId;
       for (int k=0; k<3; k++)
 	{
 	  tokens >> node;
           // vertex handles start at startv
-          starth[3*j+k] = (MBEntityHandle)(node + (int)startv-1 );
+            starth[3*j+k] = startv + node - 1;
         }
     }
 
































More information about the moab-dev mailing list