From 6caa2a8c524e3410f93650112fde47374a78c7d5 Mon Sep 17 00:00:00 2001
From: Sebastien Blaise <sebastien.blaise@uclouvain.be>
Date: Mon, 29 Oct 2012 16:30:28 +0000
Subject: [PATCH] Continuing to adapt the code to the new nodalBasis. Modified
 python wrappers to add nodalBasis. Seems there is a memory leak soewhere.
 Will check that tomorrow. Modified some names in dg.

---
 Numeric/nodalBasis.h          | 2 +-
 wrappers/gmshpy/gmshNumeric.i | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Numeric/nodalBasis.h b/Numeric/nodalBasis.h
index 3570b76959..9a614d1021 100644
--- a/Numeric/nodalBasis.h
+++ b/Numeric/nodalBasis.h
@@ -20,7 +20,7 @@ class nodalBasis {
 
   // Basis functions evaluation
   inline virtual void f(double u, double v, double w, double *sf) const {};
-  inline void f(fullMatrix<double> &coord, fullMatrix<double> &sf) const;
+  inline void f(fullMatrix<double> &coord, fullMatrix<double> &sf) const {};
 
   // Basis functions gradients evaluation
   inline virtual void df(double u, double v, double w, double grads[][3]) const {};
diff --git a/wrappers/gmshpy/gmshNumeric.i b/wrappers/gmshpy/gmshNumeric.i
index 4cb1bb74ce..cc7712bac2 100644
--- a/wrappers/gmshpy/gmshNumeric.i
+++ b/wrappers/gmshpy/gmshNumeric.i
@@ -10,6 +10,7 @@
   #include "GaussIntegration.h"
   #include "JacobianBasis.h"
   #include "fullMatrix.h"
+  #include "nodalBasis.h"
   #include "polynomialBasis.h"
 %}
 
@@ -18,4 +19,5 @@
 %include "fullMatrix.h"
 %template(fullMatrixDouble) fullMatrix<double>;
 %template(fullVectorDouble) fullVector<double>;
+%include "nodalBasis.h"
 %include "polynomialBasis.h"
-- 
GitLab