[MOAB-dev] r4241 - MOAB/trunk/src/moab
sjackson at cae.wisc.edu
sjackson at cae.wisc.edu
Tue Oct 26 15:04:05 CDT 2010
Author: sjackson
Date: 2010-10-26 15:04:04 -0500 (Tue, 26 Oct 2010)
New Revision: 4241
Modified:
MOAB/trunk/src/moab/OrientedBoxTreeTool.hpp
Log:
Fix issue where a TrvStats object used an uninitialized value
for count of ray/triangle tests.
This bug was asymptomatic in ray_fire_test, but only because I was
lucky. Yikes.
Modified: MOAB/trunk/src/moab/OrientedBoxTreeTool.hpp
===================================================================
--- MOAB/trunk/src/moab/OrientedBoxTreeTool.hpp 2010-10-26 17:20:50 UTC (rev 4240)
+++ MOAB/trunk/src/moab/OrientedBoxTreeTool.hpp 2010-10-26 20:04:04 UTC (rev 4241)
@@ -160,6 +160,8 @@
//! print the contents of this structure to given stream
void print( std::ostream& str ) const ;
+ TrvStats() : ray_tri_tests_count(0) {}
+
private:
std::vector< unsigned > nodes_visited_count;
More information about the moab-dev
mailing list