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

iulian at mcs.anl.gov iulian at mcs.anl.gov
Wed Apr 25 08:51:46 CDT 2012


Author: iulian
Date: 2012-04-25 08:51:45 -0500 (Wed, 25 Apr 2012)
New Revision: 5497

Modified:
   MOAB/trunk/tools/mbcoupler/ElemUtil.cpp
   MOAB/trunk/tools/mbcoupler/ElemUtil.hpp
   MOAB/trunk/tools/mbcoupler/ElementTest.cpp
Log:
correct the test, such that the GL points are cached in parametric space
introduce new method to set the positions in real space


Modified: MOAB/trunk/tools/mbcoupler/ElemUtil.cpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/ElemUtil.cpp	2012-04-25 03:53:46 UTC (rev 5496)
+++ MOAB/trunk/tools/mbcoupler/ElemUtil.cpp	2012-04-25 13:51:45 UTC (rev 5497)
@@ -607,6 +607,11 @@
     Init(order);
     _xyz[0]=x; _xyz[1]=y; _xyz[2]=z;
   }
+  SpectralHex::SpectralHex(int order) : Map(0)
+  {
+    Init(order);
+    _xyz[0]=_xyz[1]=_xyz[2]=NULL;
+  }
   SpectralHex::~SpectralHex()
   {
     if (_init)
@@ -646,6 +651,12 @@
     free(_odwork);
   }
 
+  void SpectralHex::set_gl_points( double * x, double * y, double *z)
+  {
+    _xyz[0] = x;
+    _xyz[1] = y;
+    _xyz[2] = z;
+  }
   CartVect SpectralHex::evaluate( const CartVect& xi ) const
   {
     //piece that we shouldn't want to cache

Modified: MOAB/trunk/tools/mbcoupler/ElemUtil.hpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/ElemUtil.hpp	2012-04-25 03:53:46 UTC (rev 5496)
+++ MOAB/trunk/tools/mbcoupler/ElemUtil.hpp	2012-04-25 13:51:45 UTC (rev 5497)
@@ -164,9 +164,10 @@
     public:
       SpectralHex(const std::vector<CartVect>& vertices) : Map(vertices){};
       SpectralHex(int order, double * x, double * y, double *z) ;
-
+      SpectralHex(int order);
       SpectralHex();
       ~SpectralHex();
+      void set_gl_points( double * x, double * y, double *z) ;
       virtual CartVect evaluate( const CartVect& xi ) const;
       virtual CartVect ievaluate(const CartVect& x) const;
       virtual Matrix3  jacobian(const CartVect& xi) const;

Modified: MOAB/trunk/tools/mbcoupler/ElementTest.cpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/ElementTest.cpp	2012-04-25 03:53:46 UTC (rev 5496)
+++ MOAB/trunk/tools/mbcoupler/ElementTest.cpp	2012-04-25 13:51:45 UTC (rev 5497)


More information about the moab-dev mailing list