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
792d5fd7
Commit
792d5fd7
authored
23 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
11197733
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Mesh/Create.h
+9
-0
9 additions, 0 deletions
Mesh/Create.h
Mesh/Generator.cpp
+10
-10
10 additions, 10 deletions
Mesh/Generator.cpp
with
19 additions
and
10 deletions
Mesh/Create.h
+
9
−
0
View file @
792d5fd7
...
@@ -25,11 +25,20 @@ void End_Surface (Surface * s);
...
@@ -25,11 +25,20 @@ void End_Surface (Surface * s);
Curve
*
Create_Curve
(
int
Num
,
int
Typ
,
int
Order
,
List_T
*
Liste
,
Curve
*
Create_Curve
(
int
Num
,
int
Typ
,
int
Order
,
List_T
*
Liste
,
List_T
*
Knots
,
int
p1
,
int
p2
,
double
u1
,
double
u2
);
List_T
*
Knots
,
int
p1
,
int
p2
,
double
u1
,
double
u2
);
void
Free_Curve
(
void
*
a
,
void
*
b
);
Surface
*
Create_Surface
(
int
Num
,
int
Typ
,
int
Mat
);
Surface
*
Create_Surface
(
int
Num
,
int
Typ
,
int
Mat
);
void
Free_Surface
(
void
*
a
,
void
*
b
);
Volume
*
Create_Volume
(
int
Num
,
int
Typ
,
int
Mat
);
Volume
*
Create_Volume
(
int
Num
,
int
Typ
,
int
Mat
);
void
Free_Volume
(
void
*
a
,
void
*
b
);
Hexahedron
*
Create_Hexahedron
(
Vertex
*
v1
,
Vertex
*
v2
,
Vertex
*
v3
,
Vertex
*
v4
,
Hexahedron
*
Create_Hexahedron
(
Vertex
*
v1
,
Vertex
*
v2
,
Vertex
*
v3
,
Vertex
*
v4
,
Vertex
*
v5
,
Vertex
*
v6
,
Vertex
*
v7
,
Vertex
*
v8
);
Vertex
*
v5
,
Vertex
*
v6
,
Vertex
*
v7
,
Vertex
*
v8
);
void
Free_Hexahedron
(
void
*
a
,
void
*
b
);
Prism
*
Create_Prism
(
Vertex
*
v1
,
Vertex
*
v2
,
Vertex
*
v3
,
Prism
*
Create_Prism
(
Vertex
*
v1
,
Vertex
*
v2
,
Vertex
*
v3
,
Vertex
*
v4
,
Vertex
*
v5
,
Vertex
*
v6
);
Vertex
*
v4
,
Vertex
*
v5
,
Vertex
*
v6
);
void
Free_Prism
(
void
*
a
,
void
*
b
);
#endif
#endif
This diff is collapsed.
Click to expand it.
Mesh/Generator.cpp
+
10
−
10
View file @
792d5fd7
// $Id: Generator.cpp,v 1.1
6
2001-05-2
3 07:29:42
geuzaine Exp $
// $Id: Generator.cpp,v 1.1
7
2001-05-2
9 13:31:04
geuzaine Exp $
#include
"Gmsh.h"
#include
"Gmsh.h"
#include
"Const.h"
#include
"Const.h"
...
@@ -121,6 +121,7 @@ void Maillage_Dimension_3 (Mesh * M){
...
@@ -121,6 +121,7 @@ void Maillage_Dimension_3 (Mesh * M){
M
->
Statistics
[
14
]
=
t2
-
t1
;
M
->
Statistics
[
14
]
=
t2
-
t1
;
}
}
void
Init_Mesh
(
Mesh
*
M
,
int
all
){
void
Init_Mesh
(
Mesh
*
M
,
int
all
){
THEM
=
M
;
THEM
=
M
;
...
@@ -133,36 +134,35 @@ void Init_Mesh (Mesh * M, int all){
...
@@ -133,36 +134,35 @@ void Init_Mesh (Mesh * M, int all){
Tree_Delete
(
M
->
VertexEdges
);
Tree_Delete
(
M
->
VertexEdges
);
}
}
if
(
M
->
Simplexes
){
if
(
M
->
Simplexes
){
Tree_Action
(
M
->
Simplexes
,
Free_Simplex
);
//
Tree_Action (M->Simplexes, Free_Simplex);
//produit des crashes innatendus...
Tree_Delete
(
M
->
Simplexes
);
Tree_Delete
(
M
->
Simplexes
);
}
}
if
(
M
->
Points
){
if
(
M
->
Points
){
//
Tree_Action (M->Points, Free_Vertex);
Tree_Action
(
M
->
Points
,
Free_Vertex
);
Tree_Delete
(
M
->
Points
);
Tree_Delete
(
M
->
Points
);
}
}
if
(
M
->
Curves
){
if
(
M
->
Curves
){
//
Tree_Action (M->
Vertic
es, Free_Curve);
Tree_Action
(
M
->
Curv
es
,
Free_Curve
);
Tree_Delete
(
M
->
Curves
);
Tree_Delete
(
M
->
Curves
);
}
}
if
(
M
->
SurfaceLoops
){
if
(
M
->
SurfaceLoops
){
//Tree_Action (M->
Vertice
s, Free_SurfaceLoop);
//Tree_Action (M->
SurfaceLoop
s, Free_SurfaceLoop);
Tree_Delete
(
M
->
SurfaceLoops
);
Tree_Delete
(
M
->
SurfaceLoops
);
}
}
if
(
M
->
EdgeLoops
){
if
(
M
->
EdgeLoops
){
//Tree_Action (M->
Vertice
s, Free_EdgeLoop);
//Tree_Action (M->
EdgeLoop
s, Free_EdgeLoop);
Tree_Delete
(
M
->
EdgeLoops
);
Tree_Delete
(
M
->
EdgeLoops
);
}
}
if
(
M
->
Surfaces
){
if
(
M
->
Surfaces
){
//
Tree_Action (M->
Verti
ces, Free_Surface);
Tree_Action
(
M
->
Surfa
ces
,
Free_Surface
);
Tree_Delete
(
M
->
Surfaces
);
Tree_Delete
(
M
->
Surfaces
);
}
}
if
(
M
->
Volumes
){
if
(
M
->
Volumes
){
//Tree_Action (M->V
ertic
es, Free_Volume);
//Tree_Action (M->V
olum
es, Free_Volume);
//produit des crashes innatendus...
Tree_Delete
(
M
->
Volumes
);
Tree_Delete
(
M
->
Volumes
);
}
}
if
(
M
->
PhysicalGroups
){
if
(
M
->
PhysicalGroups
){
//Tree_Action (M->
Vertice
s, Free_PhysicalGroup);
//Tree_Action (M->
PhysicalGroup
s, Free_PhysicalGroup);
List_Delete
(
M
->
PhysicalGroups
);
List_Delete
(
M
->
PhysicalGroups
);
}
}
if
(
M
->
Metric
){
if
(
M
->
Metric
){
...
...
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