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
de3e4201
Commit
de3e4201
authored
10 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix compile
parent
1f15c4bd
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/meshGFaceElliptic.cpp
+4
-10
4 additions, 10 deletions
Mesh/meshGFaceElliptic.cpp
Mesh/surfaceFiller.cpp
+4
-6
4 additions, 6 deletions
Mesh/surfaceFiller.cpp
with
8 additions
and
16 deletions
Mesh/meshGFaceElliptic.cpp
+
4
−
10
View file @
de3e4201
...
@@ -600,8 +600,8 @@ static void updateFaceQuads(GFace *gf, std::vector<MQuadrangle*> &quads, std::ve
...
@@ -600,8 +600,8 @@ static void updateFaceQuads(GFace *gf, std::vector<MQuadrangle*> &quads, std::ve
static
bool
computeRingVertices
(
GFace
*
gf
,
Centerline
*
center
,
static
bool
computeRingVertices
(
GFace
*
gf
,
Centerline
*
center
,
std
::
vector
<
MVertex
*>
&
vert1
,
std
::
vector
<
MVertex
*>
&
vert2
,
std
::
vector
<
MVertex
*>
&
vert1
,
std
::
vector
<
MVertex
*>
&
vert2
,
int
&
N
,
int
&
M
,
int
&
close_ind
,
int
&
sign2
,
int
&
N
,
int
&
M
,
int
&
close_ind
,
int
&
sign2
,
double
&
arc
,
double
&
length
)
{
double
&
arc
,
double
&
length
)
{
#if defined(HAVE_ANN)
#if defined(HAVE_ANN)
std
::
list
<
GEdge
*>
bedges
=
gf
->
edges
();
std
::
list
<
GEdge
*>
bedges
=
gf
->
edges
();
std
::
list
<
GEdge
*>::
iterator
itb
=
bedges
.
begin
();
std
::
list
<
GEdge
*>::
iterator
itb
=
bedges
.
begin
();
...
@@ -690,8 +690,9 @@ static bool computeRingVertices(GFace *gf, Centerline *center,
...
@@ -690,8 +690,9 @@ static bool computeRingVertices(GFace *gf, Centerline *center,
annDeallocPts
(
nodes
);
annDeallocPts
(
nodes
);
return
true
;
return
true
;
#else
return
false
;
#endif
#endif
}
}
//vert1 is the outer circle
//vert1 is the outer circle
...
@@ -705,7 +706,6 @@ static bool computeRingVertices(GFace *gf, Centerline *center,
...
@@ -705,7 +706,6 @@ static bool computeRingVertices(GFace *gf, Centerline *center,
// - - - -
// - - - -
bool
createRegularTwoCircleGridPeriodic
(
Centerline
*
center
,
GFace
*
gf
)
bool
createRegularTwoCircleGridPeriodic
(
Centerline
*
center
,
GFace
*
gf
)
{
{
#if defined(HAVE_ANN)
#if defined(HAVE_ANN)
std
::
vector
<
MVertex
*>
vert1
,
vert2
;
std
::
vector
<
MVertex
*>
vert1
,
vert2
;
int
N
,
M
,
close_ind
,
sign2
;
int
N
,
M
,
close_ind
,
sign2
;
...
@@ -756,11 +756,9 @@ bool createRegularTwoCircleGridPeriodic (Centerline *center, GFace *gf)
...
@@ -756,11 +756,9 @@ bool createRegularTwoCircleGridPeriodic (Centerline *center, GFace *gf)
//printParamGrid(gf, vert1, vert2, e00,e22,e02,e02,e02,e02, quads);
//printParamGrid(gf, vert1, vert2, e00,e22,e02,e02,e02,e02, quads);
return
true
;
return
true
;
#else
#else
return
false
;
return
false
;
#endif
#endif
}
}
//vert1 is the outer circle
//vert1 is the outer circle
...
@@ -860,11 +858,7 @@ bool createRegularTwoCircleGrid (Centerline *center, GFace *gf)
...
@@ -860,11 +858,7 @@ bool createRegularTwoCircleGrid (Centerline *center, GFace *gf)
printParamGrid
(
gf
,
vert1
,
vert2
,
e01
,
e10
,
e23
,
e32
,
e02
,
e13
,
quads
);
printParamGrid
(
gf
,
vert1
,
vert2
,
e01
,
e10
,
e23
,
e32
,
e02
,
e13
,
quads
);
return
true
;
return
true
;
#else
#else
return
false
;
return
false
;
#endif
#endif
}
}
This diff is collapsed.
Click to expand it.
Mesh/surfaceFiller.cpp
+
4
−
6
View file @
de3e4201
...
@@ -48,6 +48,7 @@ static const double DIRS [NUMDIR] = {0.0, M_PI/20.,-M_PI/20.};
...
@@ -48,6 +48,7 @@ static const double DIRS [NUMDIR] = {0.0, M_PI/20.,-M_PI/20.};
/// right spacing in the tangent plane
/// right spacing in the tangent plane
#if defined(HAVE_RTREE)
#if defined(HAVE_RTREE)
struct
surfacePointWithExclusionRegion
{
struct
surfacePointWithExclusionRegion
{
MVertex
*
_v
;
MVertex
*
_v
;
SPoint2
_center
;
SPoint2
_center
;
...
@@ -418,8 +419,6 @@ bool compute4neighbors (GFace *gf, // the surface
...
@@ -418,8 +419,6 @@ bool compute4neighbors (GFace *gf, // the surface
}
}
return
true
;
return
true
;
}
}
#endif
// ---------------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------------
...
@@ -690,6 +689,8 @@ bool get_local_sizes_and_directions(const MVertex *v_center, const SPoint2 &midp
...
@@ -690,6 +689,8 @@ bool get_local_sizes_and_directions(const MVertex *v_center, const SPoint2 &midp
return
true
;
return
true
;
}
}
#endif
// ---------------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------------
// using fifo based on smoothness criteria
// using fifo based on smoothness criteria
...
@@ -1036,7 +1037,4 @@ void packingOfParallelograms(GFace* gf, std::vector<MVertex*> &packed, std::vec
...
@@ -1036,7 +1037,4 @@ void packingOfParallelograms(GFace* gf, std::vector<MVertex*> &packed, std::vec
// printf("packed.size = %d\n",packed.size());
// printf("packed.size = %d\n",packed.size());
// delete rtree;
// delete rtree;
#endif
#endif
}
}
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