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

dg : raise an error when funciontSolution.getNbCol is called

parent 06997735
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ class function {
// get or print information
inline bool isInvalitedOnElement() { return _invalidatedOnElement; }
inline int getNbCol() const { return _nbCol; }
inline int getNbCol() const {if(_nbCol ==0) Msg::Error("Cannot ask nbCol of functionSolution"); return _nbCol; }
static functionConstant *getTime();
static functionConstant *getDT();
static function *getSolution();
......
......@@ -11,6 +11,7 @@
#include "dofManager.h"
#include "elasticitySolver.h"
#include "function.h"
#include "functionDerivator.h"
#include "functionPython.h"
#include "linearSystem.h"
#include "linearSystemCSR.h"
......@@ -28,6 +29,7 @@ namespace std {
%template(dofManagerDouble) dofManager<double>;
%include "elasticitySolver.h"
%include "function.h"
%include "functionDerivator.h"
%include "functionPython.h"
%include "linearSystem.h"
%template(linearSystemDouble) linearSystem<double>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment