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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
32534fb0
Commit
32534fb0
authored
22 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
polish
parent
7ea58e31
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Mesh/3D_Mesh.cpp
+8
-11
8 additions, 11 deletions
Mesh/3D_Mesh.cpp
Mesh/SecondOrder.cpp
+3
-5
3 additions, 5 deletions
Mesh/SecondOrder.cpp
tutorial/t4.geo
+1
-1
1 addition, 1 deletion
tutorial/t4.geo
with
12 additions
and
17 deletions
Mesh/3D_Mesh.cpp
+
8
−
11
View file @
32534fb0
// $Id: 3D_Mesh.cpp,v 1.5
4
2003-06-14
0
6:
23:04
geuzaine Exp $
// $Id: 3D_Mesh.cpp,v 1.5
5
2003-06-14
1
6:
41:12
geuzaine Exp $
//
//
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -895,12 +895,6 @@ void Maillage_Volume(void *data, void *dum)
...
@@ -895,12 +895,6 @@ void Maillage_Volume(void *data, void *dum)
return
;
return
;
}
}
if
(
CTX
.
mesh
.
order
==
2
){
// - hexes, prisms, prisms: not done (extrusion, transfinite)
// - tets: wrong if edge swaps!!
Msg
(
GERROR
,
"3D second order mesh not implemented yet"
);
}
if
(
Extrude_Mesh
(
v
))
{
if
(
Extrude_Mesh
(
v
))
{
}
}
else
if
(
MeshTransfiniteVolume
(
v
))
{
else
if
(
MeshTransfiniteVolume
(
v
))
{
...
@@ -1053,14 +1047,17 @@ void Maillage_Volume(void *data, void *dum)
...
@@ -1053,14 +1047,17 @@ void Maillage_Volume(void *data, void *dum)
}
}
#endif
#endif
if
(
CTX
.
mesh
.
order
==
2
){
//Degre2(v->Simplexes, NULL, NULL);
}
List_Delete
(
Simplexes_New
);
List_Delete
(
Simplexes_New
);
List_Delete
(
Simplexes_Destroyed
);
List_Delete
(
Simplexes_Destroyed
);
}
}
if
(
CTX
.
mesh
.
order
==
2
){
Msg
(
GERROR
,
"3D second order mesh not implemented yet"
);
// - hexa/prism/pyram: not done
// - tetra: wrong if edge swaps
//Degre2(v->Simplexes, NULL, NULL);
}
THEM
->
Statistics
[
6
]
+=
Tree_Nbr
(
v
->
Vertices
);
THEM
->
Statistics
[
6
]
+=
Tree_Nbr
(
v
->
Vertices
);
THEM
->
Statistics
[
9
]
+=
Tree_Nbr
(
v
->
Simplexes
);
THEM
->
Statistics
[
9
]
+=
Tree_Nbr
(
v
->
Simplexes
);
THEM
->
Statistics
[
10
]
+=
Tree_Nbr
(
v
->
Hexahedra
);
THEM
->
Statistics
[
10
]
+=
Tree_Nbr
(
v
->
Hexahedra
);
...
...
This diff is collapsed.
Click to expand it.
Mesh/SecondOrder.cpp
+
3
−
5
View file @
32534fb0
// $Id: SecondOrder.cpp,v 1.1
6
2003-06-14
04:37:4
2 geuzaine Exp $
// $Id: SecondOrder.cpp,v 1.1
7
2003-06-14
16:41:1
2 geuzaine Exp $
//
//
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -31,7 +31,7 @@ extern Mesh *THEM;
...
@@ -31,7 +31,7 @@ extern Mesh *THEM;
static
Surface
*
THES
;
static
Surface
*
THES
;
static
Curve
*
THEC
;
static
Curve
*
THEC
;
Vertex
*
middle
curve
(
Vertex
*
v1
,
Vertex
*
v2
)
Vertex
*
on
curve
(
Vertex
*
v1
,
Vertex
*
v2
)
{
{
Vertex
v
,
*
pv
;
Vertex
v
,
*
pv
;
...
@@ -128,11 +128,9 @@ void PutMiddlePoint(void *a, void *b)
...
@@ -128,11 +128,9 @@ void PutMiddlePoint(void *a, void *b)
if
(
ed
->
newv
){
if
(
ed
->
newv
){
v
=
ed
->
newv
;
v
=
ed
->
newv
;
}
}
else
if
((
v
=
middlecurve
(
ed
->
V
[
0
],
ed
->
V
[
1
]))){
else
if
((
v
=
oncurve
(
ed
->
V
[
0
],
ed
->
V
[
1
]))){
;
}
}
else
if
((
v
=
onsurface
(
ed
->
V
[
0
],
ed
->
V
[
1
]))){
else
if
((
v
=
onsurface
(
ed
->
V
[
0
],
ed
->
V
[
1
]))){
;
}
}
else
{
else
{
v
=
Create_Vertex
(
++
THEM
->
MaxPointNum
,
v
=
Create_Vertex
(
++
THEM
->
MaxPointNum
,
...
...
This diff is collapsed.
Click to expand it.
tutorial/t4.geo
+
1
−
1
View file @
32534fb0
...
@@ -110,7 +110,7 @@ View "comments" {
...
@@ -110,7 +110,7 @@ View "comments" {
T3
(
0
,
0.11
,
0
,
0
){
"Hole"
};
T3
(
0
,
0.11
,
0
,
0
){
"Hole"
};
};
};
Color
White
{
Surface
{
22
};
}
Color
Grey70
{
Surface
{
22
};
}
Color
Purple
{
Surface
{
24
};
}
Color
Purple
{
Surface
{
24
};
}
Color
Red
{
Line
{
1
:
14
};
}
Color
Red
{
Line
{
1
:
14
};
}
Color
Yellow
{
Line
{
15
:
20
};
}
Color
Yellow
{
Line
{
15
:
20
};
}
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