[MOAB-dev] r1948 - MOAB/trunk/refiner

dcthomp at mcs.anl.gov dcthomp at mcs.anl.gov
Fri Jun 27 19:32:21 CDT 2008


Author: dcthomp
Date: 2008-06-27 19:32:21 -0500 (Fri, 27 Jun 2008)
New Revision: 1948

Modified:
   MOAB/trunk/refiner/test_mesh_refiner.cpp
Log:
STYLE: Remove a debug printout
STYLE: Move some refinement code below the initialization.


Modified: MOAB/trunk/refiner/test_mesh_refiner.cpp
===================================================================
--- MOAB/trunk/refiner/test_mesh_refiner.cpp	2008-06-28 00:28:15 UTC (rev 1947)
+++ MOAB/trunk/refiner/test_mesh_refiner.cpp	2008-06-28 00:32:21 UTC (rev 1948)
@@ -34,23 +34,7 @@
   MBInterface* imesh = new MBCore( rank, nprocs );
   MBInterface* omesh = input_is_output ? imesh : new MBCore( rank, nprocs );
 
-  // Print out the process ranks, one at a time.
 #ifdef USE_MPI
-  for ( int i = 0; i < nprocs; ++ i )
-    {
-    MPI_Barrier( MPI_COMM_WORLD );
-    if ( i == rank )
-      {
-      std::cout << "Rank: " << ( rank + 1 ) << " of: " << nprocs << "\n";
-      }
-    MPI_Barrier( MPI_COMM_WORLD );
-    }
-#endif // USE_MPI
-
-  // The refiner will need an implicit function to be used as an indicator function for subdivision:
-  MBEdgeSizeSimpleImplicit* eval = new MBEdgeSizeSimpleImplicit();
-  eval->set_ratio( 2. );
-#ifdef USE_MPI
   // Use an MBParallelComm object to help set up the input mesh
   MBParallelComm* ipcomm = new MBParallelComm( imesh );
   ReadParallel* readpar = new ReadParallel( imesh, ipcomm );
@@ -99,6 +83,9 @@
   imesh->list_entities( 0, 1 );
 #endif // USE_MPI
 
+  // The refiner will need an implicit function to be used as an indicator function for subdivision:
+  MBEdgeSizeSimpleImplicit* eval = new MBEdgeSizeSimpleImplicit();
+  eval->set_ratio( 2. );
   // Refine the mesh
   MBMeshRefiner* mref = new MBMeshRefiner( imesh, omesh );
   MBSimplexTemplateRefiner* eref = new MBSimplexTemplateRefiner;




More information about the moab-dev mailing list