[MOAB-dev] r5719 - MOAB/trunk/src/moab/point_locater/element_maps

rhl6856 at mcs.anl.gov rhl6856 at mcs.anl.gov
Wed Aug 29 14:39:08 CDT 2012


Author: rhl6856
Date: 2012-08-29 14:39:08 -0500 (Wed, 29 Aug 2012)
New Revision: 5719

Modified:
   MOAB/trunk/src/moab/point_locater/element_maps/linear_hex_map.hpp
   MOAB/trunk/src/moab/point_locater/element_maps/spectral_hex_map.hpp
Log:
overzealous commit. bugs fixed

Modified: MOAB/trunk/src/moab/point_locater/element_maps/linear_hex_map.hpp
===================================================================
--- MOAB/trunk/src/moab/point_locater/element_maps/linear_hex_map.hpp	2012-08-29 19:31:57 UTC (rev 5718)
+++ MOAB/trunk/src/moab/point_locater/element_maps/linear_hex_map.hpp	2012-08-29 19:39:08 UTC (rev 5719)
@@ -151,7 +151,6 @@
     double evaluate_scalar_field( const Point & p, 
 				  const Field & field_values) const{
 	double f = 0.0; 
-        for(int i = 0; i < 3; ++i){ result[ i] = 0; }
         for (unsigned i = 0; i < 8; ++i) {
           const double N_i = (1 + p[0]*reference_points(i,0))
                            * (1 + p[1]*reference_points(i,1))
@@ -165,7 +164,7 @@
     template< typename Points, typename Field> 
     double integrate_scalar_field( const Points & points, 
 				   const Field & field_values) const {
-      typename typename Points::value_type Point;
+      typedef typename Points::value_type Point;
       const double gauss[1][2] = { {  2.0,           0.0          } };
       const std::size_t gauss_count = 1;
       double I(0.0);

Modified: MOAB/trunk/src/moab/point_locater/element_maps/spectral_hex_map.hpp
===================================================================
--- MOAB/trunk/src/moab/point_locater/element_maps/spectral_hex_map.hpp	2012-08-29 19:31:57 UTC (rev 5718)
+++ MOAB/trunk/src/moab/point_locater/element_maps/spectral_hex_map.hpp	2012-08-29 19:39:08 UTC (rev 5719)
@@ -29,7 +29,8 @@
 	typedef Spectral_hex_map< Matrix> Self;
   public: 
     //Constructor
-    Spectral_hex_map() { initialize_spectral_hex(order); }
+    Spectral_hex_map() {};
+    Spectral_hex_map( int order){ initialize_spectral_hex( order); }
     //Copy constructor
     Spectral_hex_map( const Self & f ) {}
   private:



More information about the moab-dev mailing list