Skip to content
Snippets Groups Projects
Commit 700d3982 authored by Emilie Marchandise's avatar Emilie Marchandise
Browse files

Correct init function in 2D incompressible,

streamwise edge length is ok
functionIntegrator interface ok
functionevaluator with dgdof solution
parent 4b0bddd5
Branches
Tags
No related merge requests found
...@@ -404,9 +404,7 @@ binding::binding() ...@@ -404,9 +404,7 @@ binding::binding()
GEntity::registerBindings(this); GEntity::registerBindings(this);
GVertex::registerBindings(this); GVertex::registerBindings(this);
GEdge::registerBindings(this); GEdge::registerBindings(this);
GFace::registerBindings(this);
GRegion::registerBindings(this); GRegion::registerBindings(this);
GModel::registerBindings(this);
GPoint::registerBindings(this); GPoint::registerBindings(this);
MElement::registerBindings(this); MElement::registerBindings(this);
MVertex::registerBindings(this); MVertex::registerBindings(this);
... ...
......
...@@ -260,20 +260,6 @@ GVertex *GModel::getVertexByTag(int n) const ...@@ -260,20 +260,6 @@ GVertex *GModel::getVertexByTag(int n) const
return 0; return 0;
} }
//we should have dynamic cast to GEdge* instead of returning GEntity*
std::vector<GEntity*> GModel::getEdgesByStringTag(const std::string tag)
{
std::vector<GEntity*> allEdges;
std::map<int, std::vector<GEntity*> > physicalGroups[4];
this->getPhysicalGroups(physicalGroups);
allEdges = physicalGroups[1][this->getPhysicalNumber(1,tag)];
return allEdges;
}
GEdge *GModel::getFirstEdgeByStringTag(const std::string tag)
{
std::vector<GEntity*> allEdges = this->getEdgesByStringTag(tag);
return (GEdge*)allEdges[0];
}
void GModel::remove(GRegion *r) void GModel::remove(GRegion *r)
{ {
...@@ -2739,9 +2725,6 @@ void GModel::registerBindings(binding *b) ...@@ -2739,9 +2725,6 @@ void GModel::registerBindings(binding *b)
"only after the partitions have been assigned"); "only after the partitions have been assigned");
cm->setArgNames("createGhostCells",NULL); cm->setArgNames("createGhostCells",NULL);
cm = cb->addMethod("getFirstEdgeByStringTag", &GModel::getFirstEdgeByStringTag);
cm->setDescription("return the first edge of the physical line with given tag.");
cm->setArgNames("string tag",NULL);
cm = cb->addMethod("scaleMesh", &GModel::scaleMesh); cm = cb->addMethod("scaleMesh", &GModel::scaleMesh);
cm->setDescription("scale the mesh by a factor"); cm->setDescription("scale the mesh by a factor");
... ...
......
...@@ -209,12 +209,6 @@ class GModel ...@@ -209,12 +209,6 @@ class GModel
GEdge *getEdgeByTag(int n) const; GEdge *getEdgeByTag(int n) const;
GVertex *getVertexByTag(int n) const; GVertex *getVertexByTag(int n) const;
//Emi- we should return vector of GEdges instead
std::vector<GEntity*> getEdgesByStringTag(const std::string tag) ;
//Emi - I do not know how to bind std::vector in lua so I return only first edge
//and used Compound Line to have a unique GEdge
GEdge *getFirstEdgeByStringTag(const std::string tag) ;
// for lua bindings, temporary solution while iterator are not binded // for lua bindings, temporary solution while iterator are not binded
std::vector<GRegion*> bindingsGetRegions(); std::vector<GRegion*> bindingsGetRegions();
std::vector<GFace*> bindingsGetFaces(); std::vector<GFace*> bindingsGetFaces();
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment