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

bindings for dgDofContainer::getGroupProxy

parent 3d5219d1
Branches
Tags
No related merge requests found
...@@ -643,4 +643,7 @@ void dgDofContainer::registerBindings(binding *b){ ...@@ -643,4 +643,7 @@ void dgDofContainer::registerBindings(binding *b){
cm = cb->addMethod("Mesh2Mesh_ApplyL2Projection",&dgDofContainer::Mesh2Mesh_ApplyL2Projection); cm = cb->addMethod("Mesh2Mesh_ApplyL2Projection",&dgDofContainer::Mesh2Mesh_ApplyL2Projection);
cm->setDescription("Apply L2 projection matrix from donor to this dofContainer."); cm->setDescription("Apply L2 projection matrix from donor to this dofContainer.");
cm->setArgNames("projector","donor","transpose","copy",NULL); cm->setArgNames("projector","donor","transpose","copy",NULL);
cm = cb->addMethod("getGroupProxy",&dgDofContainer::getGroupProxyBinding);
cm->setDescription("return the proxy to the solution of one group");
cm->setArgNames("group",NULL);
} }
...@@ -43,6 +43,7 @@ public: ...@@ -43,6 +43,7 @@ public:
void axpy(dgDofContainer &x, double a=1.); void axpy(dgDofContainer &x, double a=1.);
void axpy(std::vector<dgGroupOfElements*>groups,dgDofContainer &x, double a=1.); void axpy(std::vector<dgGroupOfElements*>groups,dgDofContainer &x, double a=1.);
inline fullMatrix<double> &getGroupProxy(int gId){ return *(_dataProxys[gId]); } inline fullMatrix<double> &getGroupProxy(int gId){ return *(_dataProxys[gId]); }
inline fullMatrix<double> *getGroupProxyBinding(int gId){ return (_dataProxys[gId]); }
inline const fullMatrix<double> &getGroupProxy(int gId) const { return *(_dataProxys[gId]); } inline const fullMatrix<double> &getGroupProxy(int gId) const { return *(_dataProxys[gId]); }
inline fullMatrix<double> &getGroupProxy(const dgGroupOfElements* g){ return *(_dataProxys[_groupId[g]]); } inline fullMatrix<double> &getGroupProxy(const dgGroupOfElements* g){ return *(_dataProxys[_groupId[g]]); }
dgDofContainer (dgGroupCollection *groups, int nbFields); dgDofContainer (dgGroupCollection *groups, int nbFields);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment