Skip to content
Snippets Groups Projects
Commit 69e62949 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

dg : complete swig bindings

parent 8a9120e9
No related branches found
No related tags found
No related merge requests found
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
#include "Bindings.h" #include "Bindings.h"
template<> void linearSystemBase::registerBindings(binding *b){
void linearSystem<double>::registerBindings(binding *b){
methodBinding *cm; methodBinding *cm;
classBinding *cb = b->addClass<linearSystemBase>("linearSystemBase"); classBinding *cb = b->addClass<linearSystemBase>("linearSystemBase");
cb->setDescription("Base class for linear systems"); cb->setDescription("Base class for linear systems");
......
...@@ -23,6 +23,7 @@ class linearSystemBase { ...@@ -23,6 +23,7 @@ class linearSystemBase {
virtual int systemSolve() = 0; virtual int systemSolve() = 0;
void setParameter (std::string key, std::string value); void setParameter (std::string key, std::string value);
virtual void insertInSparsityPattern(int _row, int _col){}; virtual void insertInSparsityPattern(int _row, int _col){};
static void registerBindings (binding*);
}; };
template <class scalar> template <class scalar>
...@@ -35,7 +36,6 @@ class linearSystem : public linearSystemBase { ...@@ -35,7 +36,6 @@ class linearSystem : public linearSystemBase {
virtual void addToRightHandSide(int _row, const scalar &val) = 0; virtual void addToRightHandSide(int _row, const scalar &val) = 0;
virtual void getFromRightHandSide(int _row, scalar &val) const = 0; virtual void getFromRightHandSide(int _row, scalar &val) const = 0;
virtual void getFromSolution(int _row, scalar &val) const = 0; virtual void getFromSolution(int _row, scalar &val) const = 0;
static void registerBindings (binding*);
virtual double normInfRightHandSide() const = 0; virtual double normInfRightHandSide() const = 0;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment