[MOAB-dev] r4629 - MOAB/trunk/tools/mbcoupler

acaceres at mcs.anl.gov acaceres at mcs.anl.gov
Mon Mar 21 16:38:56 CDT 2011


Author: acaceres
Date: 2011-03-21 16:38:56 -0500 (Mon, 21 Mar 2011)
New Revision: 4629

Modified:
   MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
Log:
Updated to work with latest incarnation of imesh


Modified: MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2011-03-21 20:57:28 UTC (rev 4628)
+++ MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2011-03-21 21:38:56 UTC (rev 4629)
@@ -11,6 +11,7 @@
 #include <iomanip>
 #include <sstream>
 #include <assert.h>
+#include "MBiMesh.hpp"
 
 using namespace moab;
 
@@ -116,10 +117,11 @@
   double stime; //, rtime, setime, dtime, ltime;
   if (0 == rank) stime = MPI_Wtime();
 
-    // create MOAB instance based on that
+  // create MOAB instance based on that
   Interface *mbImpl = new Core();
   if (NULL == mbImpl) return 1;
-  iMesh_Instance iMeshInst = reinterpret_cast<iMesh_Instance>(mbImpl);
+
+  iMesh_Instance iMeshInst = reinterpret_cast<iMesh_Instance>( new MBiMesh(mbImpl) );
   
     // read in mesh(es)
   std::vector<ParallelComm *> pcs(meshFiles.size()); 
@@ -197,6 +199,7 @@
   }
 
   delete mbImpl;
+  //may be leaking iMeshInst, don't care since it's end of program. Remove above deletes?
   
   err = MPI_Finalize();
 



















More information about the moab-dev mailing list