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

bmsmith6 at wisc.edu bmsmith6 at wisc.edu
Tue Dec 21 16:27:04 CST 2010


Author: bmsmith
Date: 2010-12-21 16:27:04 -0600 (Tue, 21 Dec 2010)
New Revision: 4400

Modified:
   MOAB/trunk/tools/dagmc/DagMC.cpp
Log:
-Add uninitialized variables to initializer list. Thanks for finding this Jason.



Modified: MOAB/trunk/tools/dagmc/DagMC.cpp
===================================================================
--- MOAB/trunk/tools/dagmc/DagMC.cpp	2010-12-21 22:24:23 UTC (rev 4399)
+++ MOAB/trunk/tools/dagmc/DagMC.cpp	2010-12-21 22:27:04 UTC (rev 4400)
@@ -119,7 +119,9 @@
 }
 
 DagMC::DagMC(Interface *mb_impl) 
-  : mbImpl(mb_impl), obbTree(mb_impl), have_cgm_geom(false)
+  : mbImpl(mb_impl), obbTree(mb_impl), have_cgm_geom(false),
+    u_last(0), v_last(0), w_last(0), last_n_particles(-1), 
+    n_pt_in_vol_calls(0), n_ray_fire_calls(0)
 {
     // This is the correct place to uniquely define default values for the dagmc settings
   options[0] = Option( "source_cell",        "source cell ID, or zero if unknown", "0" );
@@ -166,10 +168,6 @@
   impTag   = get_tag(IMP_TAG_NAME, sizeof(double), MB_TAG_DENSE, MB_TYPE_DOUBLE, def_imp );
   tallyTag = get_tag(TALLY_TAG_NAME, sizeof(int), MB_TAG_SPARSE, MB_TYPE_INTEGER);
 
-  // get some statistics for the computer geometry folks
-  n_ray_fire_calls  = 0;
-  n_pt_in_vol_calls = 0;
-
 }
 
 



























More information about the moab-dev mailing list