Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
c2977494
Commit
c2977494
authored
8 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
refactoring
parent
11b713e3
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Geo/GModelIO_GEO.cpp
+8
-0
8 additions, 0 deletions
Geo/GModelIO_GEO.cpp
Parser/Gmsh.tab.cpp
+736
-780
736 additions, 780 deletions
Parser/Gmsh.tab.cpp
Parser/Gmsh.tab.hpp
+1
-1
1 addition, 1 deletion
Parser/Gmsh.tab.hpp
Parser/Gmsh.y
+91
-135
91 additions, 135 deletions
Parser/Gmsh.y
with
836 additions
and
916 deletions
Geo/GModelIO_GEO.cpp
+
8
−
0
View file @
c2977494
...
...
@@ -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.
Click to expand it.
Parser/Gmsh.tab.cpp
+
736
−
780
View file @
c2977494
This diff is collapsed.
Click to expand it.
Parser/Gmsh.tab.hpp
+
1
−
1
View file @
c2977494
...
...
@@ -478,7 +478,7 @@
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef
union
YYSTYPE
#line 11
7
"Gmsh.y"
#line 11
8
"Gmsh.y"
{
char
*
c
;
int
i
;
...
...
This diff is collapsed.
Click to expand it.
Parser/Gmsh.y
+
91
−
135
View file @
c2977494
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment