From 0328cb67521608a5c5bf72506a2812bca4ffe55e Mon Sep 17 00:00:00 2001 From: Van Dung Nguyen <vandung.nguyen@ulg.ac.be> Date: Mon, 21 Nov 2016 14:04:29 +0000 Subject: [PATCH] correct clone function --- Solver/functionSpace.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Solver/functionSpace.h b/Solver/functionSpace.h index 5560f086ff..69619b69c0 100644 --- a/Solver/functionSpace.h +++ b/Solver/functionSpace.h @@ -67,12 +67,13 @@ class FunctionSpaceBase { public: virtual ~FunctionSpaceBase(){} + virtual int getId(void) const =0; virtual int getNumKeys(MElement *ele) = 0; // if one needs the number of dofs virtual void getKeys(MElement *ele, std::vector<Dof> &keys) = 0; virtual void getKeysOnVertex(MElement* ele, MVertex* v, const std::vector<int>& comp, std::vector<Dof>& keys){ Msg::Warning("this function is defined to get Dofs of vertex %d on element %d",v->getNum(),ele->getNum()); } - virtual FunctionSpaceBase* clone(const std::vector<int>& comp) const {return NULL;} + virtual FunctionSpaceBase* clone(const int id) const {return NULL;}; // copy space with new Id }; template<class T> -- GitLab