[MOAB-dev] r1204 - in MOAB/trunk: . tools/dagmc

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Fri Jul 13 11:05:31 CDT 2007


Author: kraftche
Date: 2007-07-13 11:05:31 -0500 (Fri, 13 Jul 2007)
New Revision: 1204

Modified:
   MOAB/trunk/MBCartVect.hpp
   MOAB/trunk/tools/dagmc/DagMC.cpp
Log:
remove default constructor for MBCartVect and properly zero vector in DagMC

Modified: MOAB/trunk/MBCartVect.hpp
===================================================================
--- MOAB/trunk/MBCartVect.hpp	2007-07-13 16:03:18 UTC (rev 1203)
+++ MOAB/trunk/MBCartVect.hpp	2007-07-13 16:05:31 UTC (rev 1204)
@@ -33,8 +33,8 @@
   
   public:
     
-  inline MBCartVect() 
-      {d[0] = d[1] = d[2] = 0.0;}
+    inline MBCartVect() 
+      { }
       /**Initialze all three values to same scalar (typically zero)*/
     explicit inline MBCartVect( double v ) 
       { d[0] = d[1] = d[2] = v; }

Modified: MOAB/trunk/tools/dagmc/DagMC.cpp
===================================================================
--- MOAB/trunk/tools/dagmc/DagMC.cpp	2007-07-13 16:03:18 UTC (rev 1203)
+++ MOAB/trunk/tools/dagmc/DagMC.cpp	2007-07-13 16:05:31 UTC (rev 1204)
@@ -278,7 +278,7 @@
     return rval;
   
     // calculate normal
-  MBCartVect norm, v1, v0 = coords[1] - coords[0];
+  MBCartVect norm(0.0), v1, v0 = coords[1] - coords[0];
   for (int i = 2; i < len; ++i) {
     v1 = coords[i] - coords[0];
     norm += v0 * v1;




More information about the moab-dev mailing list