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

iulian at mcs.anl.gov iulian at mcs.anl.gov
Thu Mar 18 09:55:20 CDT 2010


Author: iulian
Date: 2010-03-18 09:55:20 -0500 (Thu, 18 Mar 2010)
New Revision: 3660

Modified:
   MOAB/trunk/examples/FileRead.cpp
Log:
syntax error


Modified: MOAB/trunk/examples/FileRead.cpp
===================================================================
--- MOAB/trunk/examples/FileRead.cpp	2010-03-18 13:53:20 UTC (rev 3659)
+++ MOAB/trunk/examples/FileRead.cpp	2010-03-18 14:55:20 UTC (rev 3660)
@@ -74,7 +74,7 @@
   //   needed arrays, coordinate arrays
   //   also, it will return a starting handle for the node sequence
   vector<double*> arrays;
-  MBEntityHandle startv, *starth;
+  MBEntityHandle startv;
   MBErrorCode rval = iface->get_node_arrays(2, num_nodes, 0, startv, arrays);
   for (int i = 0; i < num_nodes; i++)
     {
@@ -99,10 +99,12 @@
 	continue;
       stringstream tks(line);
       tks >> num_triangles; // ignore the rest of the line
-      cout << "num triangles:" << num_nodes << endl; 
+      cout << "num triangles:" << num_triangles << endl; 
     }
 
   MBEntityHandle starte;
+  MBEntityHandle *starth; // the connectivity array that will get populated
+                          // with triangle data
   // allocate block of triangle handles and read connectivity into them
   rval = iface->get_element_array(num_triangles, 3, MBTRI, 0, starte, starth);
   



More information about the moab-dev mailing list