[MOAB-dev] r5234 - MOAB/trunk/tools/dagmc
sjackson at cae.wisc.edu
sjackson at cae.wisc.edu
Mon Dec 5 13:05:03 CST 2011
Author: sjackson
Date: 2011-12-05 13:04:57 -0600 (Mon, 05 Dec 2011)
New Revision: 5234
Modified:
MOAB/trunk/tools/dagmc/obb_analysis.cpp
Log:
Fix iteration bug
This could cause problems with dagmc_preproc's -O flag.
Modified: MOAB/trunk/tools/dagmc/obb_analysis.cpp
===================================================================
--- MOAB/trunk/tools/dagmc/obb_analysis.cpp 2011-11-30 15:50:29 UTC (rev 5233)
+++ MOAB/trunk/tools/dagmc/obb_analysis.cpp 2011-12-05 19:04:57 UTC (rev 5234)
@@ -116,7 +116,7 @@
// collect all the surfaces from the requested volumes to iterate over --
// this prevents checking a shared surface more than once.
Range surfs;
- for( std::vector<int>::iterator it = volumes.begin()+1; it!=volumes.end(); ++it ){
+ for( std::vector<int>::iterator it = volumes.begin(); it!=volumes.end(); ++it ){
vol = dag.entity_by_id(3,*it);
Range it_surfs;
More information about the moab-dev
mailing list