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

tautges at mcs.anl.gov tautges at mcs.anl.gov
Wed Sep 12 19:50:49 CDT 2012


Author: tautges
Date: 2012-09-12 19:50:49 -0500 (Wed, 12 Sep 2012)
New Revision: 5736

Modified:
   MOAB/trunk/tools/dagmc/test_geom.cc
Log:
Fixed a few compiler warnings, cleared with SteveJ.



Modified: MOAB/trunk/tools/dagmc/test_geom.cc
===================================================================
--- MOAB/trunk/tools/dagmc/test_geom.cc	2012-09-12 22:56:19 UTC (rev 5735)
+++ MOAB/trunk/tools/dagmc/test_geom.cc	2012-09-13 00:50:49 UTC (rev 5736)
@@ -1102,7 +1102,6 @@
   // get next surface
   double dist;
   EntityHandle next_surf;
-  EntityHandle prev_surf = 0;
   DagMC::RayHistory history;
   rval = dagmc.ray_fire( vol, point, dir, next_surf, dist, &history );
   CHKERR;    
@@ -1119,7 +1118,6 @@
 
   // get the next surface (behind numerical location)
   vol       = next_vol;
-  prev_surf = next_surf;
   rval = dagmc.ray_fire( vol, point, dir, next_surf, dist, &history );
   CHKERR;    
   if (next_surf != surfs[3] || fabs(dist - 0.0) > 1e-6) {
@@ -1134,7 +1132,6 @@
 
   // get the next surface
   vol       = next_vol;
-  prev_surf = next_surf;
   rval = dagmc.ray_fire( vol, point, dir, next_surf, dist, &history );
   CHKERR;    
   if (next_surf != surfs[1] || fabs(dist - 0.99) > 1e-6) {



More information about the moab-dev mailing list