[MOAB-dev] r2232 - MOAB/trunk/tools/iMesh

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Wed Nov 12 21:42:02 CST 2008


Author: kraftche
Date: 2008-11-12 21:42:02 -0600 (Wed, 12 Nov 2008)
New Revision: 2232

Modified:
   MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp
Log:
fix bug passing file load options through iMesh interface

Modified: MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp	2008-11-13 03:40:29 UTC (rev 2231)
+++ MOAB/trunk/tools/iMesh/iMesh_MOAB.cpp	2008-11-13 03:42:02 UTC (rev 2232)
@@ -303,11 +303,11 @@
 
     eatwhitespace(tmp_filename);
     eatwhitespace(tmp_options);
+    std::string opts = ";"; opts += tmp_options;
   
     MBEntityHandle file_set;
   
-    MBErrorCode result = MBI->load_file(tmp_filename.c_str(), file_set, 
-                                        tmp_options.c_str());
+    MBErrorCode result = MBI->load_file(tmp_filename.c_str(), file_set, opts.c_str());
 
     if (MB_SUCCESS != result) {
       std::string msg("iMesh_load:ERROR loading a mesh, with error type: ");




More information about the moab-dev mailing list