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
ae418f18
Commit
ae418f18
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
cfbac30b
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/BackgroundMesh.cpp
+5
-5
5 additions, 5 deletions
Mesh/BackgroundMesh.cpp
Mesh/BackgroundMesh.h
+5
-10
5 additions, 10 deletions
Mesh/BackgroundMesh.h
with
10 additions
and
15 deletions
Mesh/BackgroundMesh.cpp
+
5
−
5
View file @
ae418f18
...
...
@@ -247,12 +247,14 @@ bool Extend2dMeshIn3dVolumes()
// ---------- backgroundMesh class -----------
void
backgroundMesh
::
set
(
GFace
*
gf
){
void
backgroundMesh
::
set
(
GFace
*
gf
)
{
if
(
_current
)
delete
_current
;
_current
=
new
backgroundMesh
(
gf
);
}
void
backgroundMesh
::
unset
(){
void
backgroundMesh
::
unset
()
{
if
(
_current
)
delete
_current
;
_current
=
0
;
}
...
...
@@ -395,10 +397,8 @@ void backgroundMesh::updateSizes(GFace *_gf)
itv
->
second
=
std
::
max
(
itv
->
second
,
CTX
::
instance
()
->
mesh
.
lcMin
);
itv
->
second
=
std
::
min
(
itv
->
second
,
CTX
::
instance
()
->
mesh
.
lcMax
);
}
// return;
// ---------------------
// return;
// now do some diffusion
// ---------------------
std
::
list
<
GEdge
*>
e
=
_gf
->
edges
();
std
::
list
<
GEdge
*>::
const_iterator
it
=
e
.
begin
();
...
...
This diff is collapsed.
Click to expand it.
Mesh/BackgroundMesh.h
+
5
−
10
View file @
ae418f18
...
...
@@ -16,9 +16,7 @@ class MElement;
class
MVertex
;
class
GEntity
;
// this background mesh makes use
class
backgroundMesh
:
public
simpleFunction
<
double
>
class
backgroundMesh
:
public
simpleFunction
<
double
>
{
Octree
*
_octree
;
std
::
vector
<
MVertex
*>
_vertices
;
...
...
@@ -29,22 +27,19 @@ class backgroundMesh : public simpleFunction<double>
static
backgroundMesh
*
_current
;
backgroundMesh
(
GFace
*
);
~
backgroundMesh
();
public:
static
void
set
(
GFace
*
);
static
void
unset
();
static
backgroundMesh
*
current
()
{
return
_current
;}
public:
static
void
set
(
GFace
*
);
static
void
unset
();
static
backgroundMesh
*
current
()
{
return
_current
;
}
void
propagate1dMesh
(
GFace
*
);
void
updateSizes
(
GFace
*
);
double
operator
()
(
double
u
,
double
v
,
double
w
)
const
;
void
print
(
const
std
::
string
&
filename
,
GFace
*
gf
)
const
;
};
double
BGM_MeshSize
(
GEntity
*
ge
,
double
U
,
double
V
,
double
X
,
double
Y
,
double
Z
);
SMetric3
BGM_MeshMetric
(
GEntity
*
ge
,
double
U
,
double
V
,
double
X
,
double
Y
,
double
Z
);
bool
Extend1dMeshIn2dSurfaces
();
bool
Extend2dMeshIn3dVolumes
();
#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