[MOAB-dev] r4245 - MOAB/trunk/tools/mbcoupler

smithrm at mcs.anl.gov smithrm at mcs.anl.gov
Tue Nov 2 10:50:59 CDT 2010


Author: smithrm
Date: 2010-11-02 10:50:59 -0500 (Tue, 02 Nov 2010)
New Revision: 4245

Modified:
   MOAB/trunk/tools/mbcoupler/ElemUtil.cpp
   MOAB/trunk/tools/mbcoupler/ElemUtil.hpp
Log:
o Fixed default parameter in Map::ievaluate().


Modified: MOAB/trunk/tools/mbcoupler/ElemUtil.cpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/ElemUtil.cpp	2010-11-01 23:13:34 UTC (rev 4244)
+++ MOAB/trunk/tools/mbcoupler/ElemUtil.cpp	2010-11-02 15:50:59 UTC (rev 4245)
@@ -438,7 +438,7 @@
     this->vertex = v;
   };// Map::set_vertices()
   //
-  CartVect Map::ievaluate(const CartVect& x, double tol, const CartVect& x0 = CartVect(0.0)) const {
+  CartVect Map::ievaluate(const CartVect& x, double tol, const CartVect& x0) const {
     const double error_tol_sqr = tol*tol;
     double det;
     CartVect xi = x0;

Modified: MOAB/trunk/tools/mbcoupler/ElemUtil.hpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/ElemUtil.hpp	2010-11-01 23:13:34 UTC (rev 4244)
+++ MOAB/trunk/tools/mbcoupler/ElemUtil.hpp	2010-11-02 15:50:59 UTC (rev 4245)
@@ -67,7 +67,7 @@
       /**\brief Evaluate the map on \xi (calculate $\vec x = F($\vec \xi)$ )*/
       virtual CartVect evaluate( const CartVect& xi ) const = 0;
       /**\brief Evaluate the inverse map (calculate $\vec \xi = F^-1($\vec x)$ to given tolerance)*/
-      CartVect ievaluate( const CartVect& x, double tol, const CartVect& x0) const ;
+      CartVect ievaluate( const CartVect& x, double tol, const CartVect& x0 = CartVect(0.0)) const ;
       /* FIX: should evaluate and ievaluate return both the value and the Jacobian (first jet)? */
       /**\brief Evaluate the map's Jacobi matrix. */
       virtual Matrix3 jacobian( const CartVect& xi ) const = 0;


























More information about the moab-dev mailing list