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
f15b2296
Commit
f15b2296
authored
13 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
getNumVolumeVertices() for HEX_27 is 1, not 8 !!
parent
07095227
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Geo/MHexahedron.h
+4
-5
4 additions, 5 deletions
Geo/MHexahedron.h
with
4 additions
and
5 deletions
Geo/MHexahedron.h
+
4
−
5
View file @
f15b2296
...
...
@@ -374,9 +374,7 @@ class MHexahedron27 : public MHexahedron {
}
virtual
int
getNumEdgeVertices
()
const
{
return
12
;
}
virtual
int
getNumFaceVertices
()
const
{
return
6
;
}
virtual
int
getNumVolumeVertices
()
const
{
return
8
;
}
virtual
int
getNumVolumeVertices
()
const
{
return
1
;
}
virtual
int
getNumEdgesRep
(){
return
24
;
}
virtual
void
getEdgeRep
(
int
num
,
double
*
x
,
double
*
y
,
double
*
z
,
SVector3
*
n
)
{
...
...
@@ -521,7 +519,8 @@ class MHexahedronN : public MHexahedron {
virtual
MVertex
*
getVertex
(
int
num
){
return
num
<
8
?
_v
[
num
]
:
_vs
[
num
-
8
];
}
virtual
int
getNumEdgeVertices
()
const
{
return
12
*
(
_order
-
1
);
}
virtual
int
getNumFaceVertices
()
const
{
return
6
*
(
_order
-
1
)
*
(
_order
-
1
);
}
virtual
int
getNumVolumeVertices
()
const
{
virtual
int
getNumVolumeVertices
()
const
{
switch
(
getTypeForMSH
()){
case
MSH_HEX_27
:
case
MSH_HEX_64
:
...
...
@@ -531,7 +530,7 @@ class MHexahedronN : public MHexahedron {
case
MSH_HEX_512
:
case
MSH_HEX_729
:
case
MSH_HEX_1000
:
return
(
_order
-
1
)
*
(
_order
-
1
)
*
(
_order
-
1
);
return
(
_order
-
1
)
*
(
_order
-
1
)
*
(
_order
-
1
);
default:
return
0
;
}
...
...
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