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
66784a07
Commit
66784a07
authored
13 years ago
by
Bastien Gorissen
Browse files
Options
Downloads
Patches
Plain Diff
Removed warnings and fix compile (?)
parent
ea9fd2db
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
Geo/MZoneBoundary.cpp
+4
-5
4 additions, 5 deletions
Geo/MZoneBoundary.cpp
Geo/MZoneBoundary.h
+1
-1
1 addition, 1 deletion
Geo/MZoneBoundary.h
with
5 additions
and
6 deletions
Geo/MZoneBoundary.cpp
+
4
−
5
View file @
66784a07
...
...
@@ -221,7 +221,7 @@ int edge_normal
double
par
=
0.0
;
// Note: const_cast used to match MVertex.cpp interface
if
(
!
reparamMeshVertexOnEdge
(
vertex
,
gEdge
,
par
))
return
1
;
if
(
!
reparamMeshVertexOnEdge
(
const_cast
<
MVertex
*>
(
vertex
)
,
gEdge
,
par
))
return
1
;
const
SVector3
tangent
(
gEdge
->
firstDer
(
par
));
// Tangent to the boundary face
...
...
@@ -646,7 +646,7 @@ void updateBoVec<3, MFace>
gFIt
!=
useGFace
.
end
();
++
gFIt
)
{
SPoint2
par
;
if
(
!
reparamMeshVertexOnFace
(
vertex
,
*
gFIt
,
par
))
if
(
!
reparamMeshVertexOnFace
(
const_cast
<
MVertex
*>
(
vertex
)
,
*
gFIt
,
par
))
goto
getNormalFromElements
;
// :P After all that!
SVector3
boNormal
=
(
*
gFIt
)
->
normal
(
par
);
...
...
@@ -680,7 +680,7 @@ void updateBoVec<3, MFace>
{
const
GFace
*
const
gFace
=
static_cast
<
const
GFace
*>
(
ent
);
SPoint2
par
;
if
(
!
reparamMeshVertexOnFace
(
vertex
,
gFace
,
par
))
if
(
!
reparamMeshVertexOnFace
(
const_cast
<
MVertex
*>
(
vertex
)
,
gFace
,
par
))
goto
getNormalFromElements
;
SVector3
boNormal
=
static_cast
<
const
GFace
*>
(
ent
)
->
normal
(
par
);
...
...
@@ -815,7 +815,6 @@ int MZoneBoundary<DIM>::interiorBoundaryVertices
// Copy faces
const
int
nFace
=
zoneVertData
.
faces
.
size
();
int
iCount
=
0
;
for
(
int
iFace
=
0
;
iFace
!=
nFace
;
++
iFace
)
{
#if (0)
...
...
@@ -902,7 +901,7 @@ int MZoneBoundary<DIM>::interiorBoundaryVertices
&
zoneVertData
.
faces
[
0
];
for
(
int
nZFace
=
zoneVertData
.
faces
.
size
();
nZFace
--
;)
{
bool
foundMatch
=
false
;
for
(
int
iGFace
=
0
;
iGFace
!=
nGFace
;
++
iGFace
)
for
(
unsigned
int
iGFace
=
0
;
iGFace
!=
nGFace
;
++
iGFace
)
{
// NBN: face is now a pointer, so need to de-reference
//if((*zFace)->first == globalVertData.faces[iGFace].face )
...
...
This diff is collapsed.
Click to expand it.
Geo/MZoneBoundary.h
+
1
−
1
View file @
66784a07
...
...
@@ -324,7 +324,7 @@ class MZoneBoundary
// ... clear the faces
GlobalVertexData
<
FaceT
>&
ref
=
itBoV
->
second
;
size_t
nf
=
ref
.
faces
.
size
();
for
(
int
i
=
0
;
i
<
nf
;
++
i
)
{
for
(
unsigned
int
i
=
0
;
i
<
nf
;
++
i
)
{
++
icount
;
FaceT
*
p
=
ref
.
faces
[
i
].
face
;
if
(
p
)
{
...
...
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