[MOAB-dev] r1885 - MOAB/trunk

dcthomp at mcs.anl.gov dcthomp at mcs.anl.gov
Mon Jun 9 18:55:41 CDT 2008


Author: dcthomp
Date: 2008-06-09 18:55:41 -0500 (Mon, 09 Jun 2008)
New Revision: 1885

Modified:
   MOAB/trunk/test_mesh_refiner.cpp
Log:
ENH: Now that we have tetrahedra being constructed, exercise the refiner.


Modified: MOAB/trunk/test_mesh_refiner.cpp
===================================================================
--- MOAB/trunk/test_mesh_refiner.cpp	2008-06-09 23:54:05 UTC (rev 1884)
+++ MOAB/trunk/test_mesh_refiner.cpp	2008-06-09 23:55:41 UTC (rev 1885)
@@ -230,21 +230,18 @@
   iface->tag_set_data( tag_gid, &tet_handle, 1, gid_values + 6 + rank );
   iface->list_entities( 0, 1 );
 
-  /*
   MBSimplexTemplateRefiner eref( iface );
   MBTestOutputFunctor* ofunc = new MBTestOutputFunctor;
   ofunc->input_is_output = ( argc > 1 && ! strcmp( argv[1], "-new-mesh" ) ) ? false : true;
   ofunc->mesh = ofunc->input_is_output ? iface : new MBCore;
   eref.set_edge_size_evaluator( eval );
   eref.set_output_functor( ofunc );
-  eref.refine_entity( tri_handle );
+  eref.refine_entity( tet_handle );
 
-  iface->list_entities( 0, 1 );
+  ofunc->mesh->list_entities( 0, 1 );
 
   if ( ! ofunc->input_is_output )
     delete ofunc->mesh;
-  */
-  delete eval;
   delete iface;
 
 #ifdef USE_MPI




More information about the moab-dev mailing list