[MOAB-dev] r5953 - MOAB/trunk/src/moab
vijaysm at mcs.anl.gov
vijaysm at mcs.anl.gov
Tue Jan 22 18:46:39 CST 2013
Author: vijaysm
Date: 2013-01-22 18:46:39 -0600 (Tue, 22 Jan 2013)
New Revision: 5953
Modified:
MOAB/trunk/src/moab/CartVect.hpp
Log:
Reverting the virtual destructor addition to CartVect. This was needed since BSPTreePoly::Vertex derives
from this structure but since CartVect only contains POD types, there is no value in increasing the
memory footprint for the sake of derivation.
make check passes all tests now while previously with the virtual destructor both tools/refiner/test_mesh_refiner
and tools/mbcoupler_test failed in debug mode.
Modified: MOAB/trunk/src/moab/CartVect.hpp
===================================================================
--- MOAB/trunk/src/moab/CartVect.hpp 2013-01-22 23:43:31 UTC (rev 5952)
+++ MOAB/trunk/src/moab/CartVect.hpp 2013-01-23 00:46:39 UTC (rev 5953)
@@ -1,16 +1,16 @@
/**
* MOAB, a Mesh-Oriented datABase, is a software component for creating,
* storing and accessing finite element mesh data.
- *
+ *
* Copyright 2004 Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000 with Sandia Coroporation, the U.S. Government
* retains certain rights in this software.
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
*/
#ifndef MB_CART_VECT_HPP
@@ -31,13 +31,13 @@
{
private:
double d[3];
-
+
public:
-
- inline CartVect()
+
+ inline CartVect()
{ }
/**Initialze all three values to same scalar (typically zero)*/
- explicit inline CartVect( double v )
+ explicit inline CartVect( double v )
{ d[0] = d[1] = d[2] = v; }
inline CartVect( double i, double j, double k )
{ d[0] = i; d[1] = j; d[2] = k; }
@@ -47,14 +47,11 @@
inline CartVect& operator=( const double v[3] )
{ d[0]= v[0]; d[1] = v[1]; d[2] = v[2]; return *this; }
- virtual ~CartVect()
- { }
-
inline double& operator[]( unsigned i )
{ return d[i]; }
More information about the moab-dev
mailing list