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
56eada36
Commit
56eada36
authored
11 years ago
by
Gauthier Becker
Browse files
Options
Downloads
Patches
Plain Diff
Fix minimal compile i.e. without ANN and TETGEN
parent
1703dcdc
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Geo/GFaceCompound.h
+1
-0
1 addition, 0 deletions
Geo/GFaceCompound.h
Mesh/Field.h
+31
-0
31 additions, 0 deletions
Mesh/Field.h
Mesh/meshGRegion.cpp
+7
-1
7 additions, 1 deletion
Mesh/meshGRegion.cpp
with
39 additions
and
1 deletion
Geo/GFaceCompound.h
+
1
−
0
View file @
56eada36
...
...
@@ -230,6 +230,7 @@ class GFaceCompound : public GFace {
GPoint
intersectionWithCircle
(
const
SVector3
&
n1
,
const
SVector3
&
n2
,
const
SVector3
&
p
,
const
double
&
d
,
double
uv
[
2
])
const
{
return
GPoint
();
}
int
allowPartition
()
const
{
return
1
;
}
void
deleteInternals
(){}
};
#endif
...
...
This diff is collapsed.
Click to expand it.
Mesh/Field.h
+
31
−
0
View file @
56eada36
...
...
@@ -165,7 +165,38 @@ class BoundaryLayerField : public Field {
void
setupFor3d
();
void
removeAttractors
();
};
#else
class
BoundaryLayerField
:
public
Field
{
public:
double
hwall_n
,
hwall_t
,
ratio
,
hfar
,
thickness
,
fan_angle
;
double
current_distance
,
tgt_aniso_ratio
;
SPoint3
_closest_point
;
int
iRecombine
,
iIntersect
;
//AttractorField *current_closest;
virtual
bool
isotropic
()
const
{
return
false
;}
virtual
const
char
*
getName
(){
return
""
;}
virtual
std
::
string
getDescription
(){
return
""
;}
BoundaryLayerField
()
:
hwall_n
(
0.
),
hwall_t
(
0.
),
ratio
(
0.
),
hfar
(
0.
),
thickness
(
0.
),
fan_angle
(
0.
),
current_distance
(
0.
),
tgt_aniso_ratio
(
0.
),
_closest_point
(
0.
,
0.
,
0.
),
iRecombine
(
0
),
iIntersect
(
0
)
//current_closest(NULL)
{
Msg
::
Error
(
"You must compile with ANN to use BoundaryLayerField"
);
}
~
BoundaryLayerField
()
{}
virtual
double
operator
()
(
double
x
,
double
y
,
double
z
,
GEntity
*
ge
=
0
){
return
0.
;}
virtual
void
operator
()
(
double
x
,
double
y
,
double
z
,
SMetric3
&
metr
,
GEntity
*
ge
=
0
){}
bool
isFaceBL
(
int
iF
)
const
{
return
false
;}
bool
isEdgeBL
(
int
iE
)
const
{
return
false
;}
bool
isVertexBL
(
int
iV
)
const
{
return
false
;}
void
computeFor1dMesh
(
double
x
,
double
y
,
double
z
,
SMetric3
&
metr
){
return
;}
void
setupFor2d
(
int
iF
){
return
;}
void
setupFor3d
(){
return
;}
void
removeAttractors
(){
return
;}
};
#endif
class
FieldOptionString
:
public
FieldOption
{
public:
...
...
This diff is collapsed.
Click to expand it.
Mesh/meshGRegion.cpp
+
7
−
1
View file @
56eada36
...
...
@@ -1066,6 +1066,7 @@ void _relocateVertex(MVertex *ver,
}
}
#if defined(HAVE_TETGEN)
bool
CreateAnEmptyVolumeMesh
(
GRegion
*
gr
){
printf
(
"creating an empty volume mesh
\n
"
);
splitQuadRecovery
sqr
;
...
...
@@ -1088,7 +1089,12 @@ bool CreateAnEmptyVolumeMesh(GRegion *gr){
TransferTetgenMesh
(
gr
,
in
,
out
,
numberedV
);
return
true
;
}
#else
bool
CreateAnEmptyVolumeMesh
(
GRegion
*
gr
){
Msg
::
Error
(
"You should compile with TETGEN in order to create an empty volume mesh"
);
return
false
;
}
#endif // HAVE_TETGEN#endif // HAVE_TETGEN#endif // HAVE_TETGEN
void
MeshDelaunayVolume
(
std
::
vector
<
GRegion
*>
&
regions
)
{
...
...
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