Skip to content
Snippets Groups Projects
Commit c2977494 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

refactoring

parent 11b713e3
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,10 @@ void GEO_Internals::resetPhysicalGroups()
void GEO_Internals::addVertex(int num, double x, double y, double z, double lc)
{
if(FindPoint(num)){
Msg::Error("GEO vertex with tag %d already exists", num);
return;
}
Vertex *v = Create_Vertex(num, x, y, z, lc, 1.0);
Tree_Add(Points, &v);
}
......@@ -70,6 +74,10 @@ void GEO_Internals::addVertex(int num, double x, double y, double z, double lc)
void GEO_Internals::addVertex(int num, double x, double y, gmshSurface *surface,
double lc)
{
if(FindPoint(num)){
Msg::Error("GEO vertex with tag %d already exists", num);
return;
}
Vertex *v = Create_Vertex(num, x, y, surface, lc);
Tree_Add(Points, &v);
}
......
This diff is collapsed.
......@@ -478,7 +478,7 @@
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
#line 117 "Gmsh.y"
#line 118 "Gmsh.y"
{
char *c;
int i;
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment