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
No related branches found
No related tags found
No related merge requests found
......@@ -404,9 +404,7 @@ binding::binding()
GEntity::registerBindings(this);
GVertex::registerBindings(this);
GEdge::registerBindings(this);
GFace::registerBindings(this);
GRegion::registerBindings(this);
GModel::registerBindings(this);
GPoint::registerBindings(this);
MElement::registerBindings(this);
MVertex::registerBindings(this);
......
......@@ -260,20 +260,6 @@ GVertex *GModel::getVertexByTag(int n) const
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)
{
......@@ -2739,9 +2725,6 @@ void GModel::registerBindings(binding *b)
"only after the partitions have been assigned");
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->setDescription("scale the mesh by a factor");
......
......@@ -208,12 +208,6 @@ class GModel
GFace *getFaceByTag(int n) const;
GEdge *getEdgeByTag(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
std::vector<GRegion*> bindingsGetRegions();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment