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

iulian at mcs.anl.gov iulian at mcs.anl.gov
Mon Feb 28 17:16:06 CST 2011


Author: iulian
Date: 2011-02-28 17:16:06 -0600 (Mon, 28 Feb 2011)
New Revision: 4535

Modified:
   MOAB/trunk/src/io/WriteSmf.cpp
Log:
case when output sets are provided was not implemented


Modified: MOAB/trunk/src/io/WriteSmf.cpp
===================================================================
--- MOAB/trunk/src/io/WriteSmf.cpp	2011-02-28 21:00:18 UTC (rev 4534)
+++ MOAB/trunk/src/io/WriteSmf.cpp	2011-02-28 23:16:06 UTC (rev 4535)
@@ -109,9 +109,9 @@
   }
   else
   {
-    // not implemented yet, get out
-    // support export only of all triangles from the mesh
-    return  MB_NOT_IMPLEMENTED;
+    // get all triangles from output sets
+    for (int i=0; i<num_sets; i++)
+      rval = mbImpl->get_entities_by_type( output_list[i], MBTRI, triangles, false);
   }
   // use an array with all the connectivities in the triangles; it will be converted later to ints
   int numTriangles = triangles.size();




































More information about the moab-dev mailing list