Skip to content
Snippets Groups Projects
Commit 0328cb67 authored by Van Dung Nguyen's avatar Van Dung Nguyen
Browse files

correct clone function

parent 724044f4
No related branches found
No related tags found
No related merge requests found
...@@ -67,12 +67,13 @@ class FunctionSpaceBase ...@@ -67,12 +67,13 @@ class FunctionSpaceBase
{ {
public: public:
virtual ~FunctionSpaceBase(){} virtual ~FunctionSpaceBase(){}
virtual int getId(void) const =0;
virtual int getNumKeys(MElement *ele) = 0; // if one needs the number of dofs 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 getKeys(MElement *ele, std::vector<Dof> &keys) = 0;
virtual void getKeysOnVertex(MElement* ele, MVertex* v, const std::vector<int>& comp, std::vector<Dof>& keys){ 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()); 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> template<class T>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment