[MOAB-dev] r1740 - MOAB/trunk/tools/dagmc
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Thu Apr 3 14:40:15 CDT 2008
Author: kraftche
Date: 2008-04-03 14:40:15 -0500 (Thu, 03 Apr 2008)
New Revision: 1740
Modified:
MOAB/trunk/tools/dagmc/DagMC.cpp
MOAB/trunk/tools/dagmc/test_geom.cc
Log:
correct fix for use of uninitialized values
Modified: MOAB/trunk/tools/dagmc/DagMC.cpp
===================================================================
--- MOAB/trunk/tools/dagmc/DagMC.cpp 2008-04-03 14:30:57 UTC (rev 1739)
+++ MOAB/trunk/tools/dagmc/DagMC.cpp 2008-04-03 19:40:15 UTC (rev 1740)
@@ -543,7 +543,6 @@
// Check for on-boundary case
diff = closest - point;
if (diff%diff <= epsilon*epsilon) {
- u = v = w = 2;
return boundary_case( volume, result, u, v, w, facet, surface );
}
Modified: MOAB/trunk/tools/dagmc/test_geom.cc
===================================================================
--- MOAB/trunk/tools/dagmc/test_geom.cc 2008-04-03 14:30:57 UTC (rev 1739)
+++ MOAB/trunk/tools/dagmc/test_geom.cc 2008-04-03 19:40:15 UTC (rev 1740)
@@ -447,7 +447,7 @@
for (int i = 0; i < num_test; ++i) {
int result;
- double u, v, w;
+ double u = 2, v = 2, w = 2; // values greater than 1 should get ignored
rval = dagmc.point_in_volume( vol,
tests[i].coords[0],
tests[i].coords[1],
More information about the moab-dev
mailing list