[MOAB-dev] r4763 - MOAB/trunk/test

iulian at mcs.anl.gov iulian at mcs.anl.gov
Thu Apr 21 09:34:12 CDT 2011


Author: iulian
Date: 2011-04-21 09:34:12 -0500 (Thu, 21 Apr 2011)
New Revision: 4763

Modified:
   MOAB/trunk/test/gttool_test.cpp
   MOAB/trunk/test/mbfacet_test.cpp
Log:
delete mesh before reloading a file for a test
only one moab instance is used now


Modified: MOAB/trunk/test/gttool_test.cpp
===================================================================
--- MOAB/trunk/test/gttool_test.cpp	2011-04-21 13:41:05 UTC (rev 4762)
+++ MOAB/trunk/test/gttool_test.cpp	2011-04-21 14:34:12 UTC (rev 4763)
@@ -99,7 +99,7 @@
   std::cout << "\n";
 
   std::cout << "create shell test: ";
-  rval = create_shell_test( mb); // just pass the root set
+  rval = create_shell_test( mb);
   handle_error_code(rval, number_tests_failed, number_tests_successful);
   std::cout << "\n";
 
@@ -404,11 +404,12 @@
   rval = mb->write_mesh(ofile2.c_str());
   assert(MB_SUCCESS==rval);
 
+  rval = mb->delete_mesh();
+  assert(MB_SUCCESS==rval);
+
   // now test loading it up
-  Core mbcore2;
-  Interface * mb2 = &mbcore2;
 
-  rval = mb2->load_file(ofile2.c_str());
+  rval = mb->load_file(ofile2.c_str());
   assert(MB_SUCCESS==rval);
 
   if (remove_output_file)
@@ -417,9 +418,9 @@
   }
   // do some tests on geometry
 
-
-
-  moab::GeomTopoTool gTopoTool2(mb2, true);// to find the geomsets
+  // it would be good to have a method on updating the geom topo tool
+  // so we do not have to create another one
+  moab::GeomTopoTool gTopoTool2(mb, true);// to find the geomsets
   Range ranges[4];
   rval =  gTopoTool2.find_geomsets(ranges);
 

Modified: MOAB/trunk/test/mbfacet_test.cpp
===================================================================
--- MOAB/trunk/test/mbfacet_test.cpp	2011-04-21 13:41:05 UTC (rev 4762)
+++ MOAB/trunk/test/mbfacet_test.cpp	2011-04-21 14:34:12 UTC (rev 4763)
@@ -60,7 +60,7 @@
 ErrorCode normals_test(FBEngine * pFacet);
 ErrorCode ray_test(FBEngine * pFacet);
 ErrorCode split_test(Interface * mb, FBEngine * pFacet);


More information about the moab-dev mailing list