From 7223d51b5753008a6176faa0b9c32686c11c9b2b Mon Sep 17 00:00:00 2001
From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be>
Date: Mon, 14 Jun 2010 09:03:57 +0000
Subject: [PATCH] correct bindings in elasticitySolver

---
 Common/LuaBindings.cpp    | 2 ++
 Solver/elasticitySolver.h | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Common/LuaBindings.cpp b/Common/LuaBindings.cpp
index 6a62a8e1f8..9bcde675ab 100644
--- a/Common/LuaBindings.cpp
+++ b/Common/LuaBindings.cpp
@@ -290,6 +290,7 @@ void binding::checkDocCompleteness()
       nBad++;
     }
     luaMethodBinding *constructor = cb->second->getConstructor();
+    printf("checking %s\n", cb->first.c_str());
     if(constructor){
       if(constructor->getDescription().empty()){
         Msg::Error("binded constructor of class %s has no description.", 
@@ -313,6 +314,7 @@ void binding::checkDocCompleteness()
                    mb->first.c_str());
         nBad++;
       }
+      printf("checking     %s\n", mb->first.c_str());
       std::vector<std::string> argTypeNames;
       mb->second->getArgTypeNames(argTypeNames);
       int nTypeArg = countInArguments(argTypeNames);
diff --git a/Solver/elasticitySolver.h b/Solver/elasticitySolver.h
index f5866f1d4e..8df295dc57 100644
--- a/Solver/elasticitySolver.h
+++ b/Solver/elasticitySolver.h
@@ -82,7 +82,7 @@ class elasticitySolver
     if (pAssembler) delete pAssembler;
   }
   void readInputFile(const std::string &meshFileName);
-  void read(char *s) {readInputFile(s);}
+  void read(const std::string s) {readInputFile(s.c_str());}
   virtual void setMesh(const std::string &meshFileName);
   void solve();
   virtual PView *buildDisplacementView(const std::string &postFileName);
-- 
GitLab