[MOAB-dev] r5264 - MOAB/trunk/tools/dagmc

sjackson at cae.wisc.edu sjackson at cae.wisc.edu
Thu Dec 15 15:35:46 CST 2011


Author: sjackson
Date: 2011-12-15 15:35:46 -0600 (Thu, 15 Dec 2011)
New Revision: 5264

Modified:
   MOAB/trunk/tools/dagmc/DagMC.cpp
Log:
Fix an issue with DagMC's overlap tolerance

Remove a printed warning message when overlaps of a certain
size are detected.  This caused tons of unwanted stdout spam
for users who enabled larger overlap tolerances.

The message remains, but is relegated to debug mode, which
already produces copious output.

Modified: MOAB/trunk/tools/dagmc/DagMC.cpp
===================================================================
--- MOAB/trunk/tools/dagmc/DagMC.cpp	2011-12-15 17:13:43 UTC (rev 5263)
+++ MOAB/trunk/tools/dagmc/DagMC.cpp	2011-12-15 21:35:46 UTC (rev 5264)
@@ -715,14 +715,10 @@
     history->prev_facets.push_back( facets[exit_idx] );
   }
 
-  // print a warning if the negative ray length was excessive
-  if(-0.1 > dists[exit_idx]) {
-    std:: cout << "WARNING: overlap track length=" << dists[exit_idx] 
-               <<  " next_surf=" << id_by_index(2, index_by_handle(next_surf)) 
-               << " vol_id=" << id_by_index(3, index_by_handle(vol)) << std::endl;
-  }
-
   if (debug) {
+    if( 0 > dists[exit_idx] ){
+      std::cout << "          OVERLAP track length=" << dists[exit_idx] << std::endl;
+    }
     std::cout << "          next_surf = " <<  id_by_index(2, index_by_handle(next_surf)) 
               << ", dist = " << next_surf_dist << " new_pt=";
     for( int i = 0; i < 3; ++i ){































More information about the moab-dev mailing list