Skip to content
Snippets Groups Projects
Commit b8e02e7f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

setConstructor does not compile on mac -- removing for now, which will break lua bindings

parent 8cf93271
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <string> #include <string>
#include <list> #include <list>
#include <typeinfo> #include <typeinfo>
#include "GmshConfig.h"
class methodBinding{ class methodBinding{
public: public:
...@@ -32,9 +33,9 @@ tObj *constructorPtr(){ ...@@ -32,9 +33,9 @@ tObj *constructorPtr(){
return new tObj(); return new tObj();
} }
#ifdef HAVE_LUA //no bindings #if defined(HAVE_LUA)
#include "LuaBindings.h" #include "LuaBindings.h"
#else #else //no bindings
#include "DummyBindings.h" #include "DummyBindings.h"
#endif #endif
......
...@@ -289,6 +289,8 @@ bool fullMatrix<double>::svd(fullMatrix<double> &V, fullVector<double> &S) ...@@ -289,6 +289,8 @@ bool fullMatrix<double>::svd(fullMatrix<double> &V, fullVector<double> &S)
return false; return false;
} }
#endif
#include "Bindings.h" #include "Bindings.h"
template<> template<>
void fullMatrix<double>::registerBindings(binding *b){ void fullMatrix<double>::registerBindings(binding *b){
...@@ -299,6 +301,5 @@ void fullMatrix<double>::registerBindings(binding *b){ ...@@ -299,6 +301,5 @@ void fullMatrix<double>::registerBindings(binding *b){
cb->addMethod("get",&fullMatrix<double>::get); cb->addMethod("get",&fullMatrix<double>::get);
cb->addMethod("set",&fullMatrix<double>::set); cb->addMethod("set",&fullMatrix<double>::set);
cb->addMethod("gemm",&fullMatrix<double>::gemm); cb->addMethod("gemm",&fullMatrix<double>::gemm);
cb->setConstructor(constructorPtr<fullMatrix<double>,int,int>); // cb->setConstructor(constructorPtr<fullMatrix<double>,int,int>);
} }
#endif
...@@ -353,8 +353,6 @@ bool OctreePost::_getValue(void *in, int nbComp, double P[3], int timestep, ...@@ -353,8 +353,6 @@ bool OctreePost::_getValue(void *in, int nbComp, double P[3], int timestep,
double U[3]; double U[3];
e->xyz2uvw(P, U); e->xyz2uvw(P, U);
//printf("hey!\n");
double nodeval[8 * 9]; double nodeval[8 * 9];
for(int step = 0; step < _theViewDataGModel->getNumTimeSteps(); step++){ for(int step = 0; step < _theViewDataGModel->getNumTimeSteps(); step++){
if(timestep < 0 || step == timestep){ if(timestep < 0 || step == timestep){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment