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
Package registry
Model registry
Operate
Terraform modules
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
Romin Tomasetti
gmsh
Commits
df3e2650
Commit
df3e2650
authored
7 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
42ee1486
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
+3
-7
3 additions, 7 deletions
Mesh/BackgroundMesh.cpp
Mesh/BackgroundMesh2D.cpp
+4
-4
4 additions, 4 deletions
Mesh/BackgroundMesh2D.cpp
with
7 additions
and
11 deletions
Mesh/BackgroundMesh.cpp
+
3
−
7
View file @
df3e2650
...
...
@@ -224,7 +224,7 @@ static void propagateValuesOnFace(GFace *_gf,
void
backgroundMesh
::
propagate1dMesh
(
GFace
*
_gf
)
{
std
::
list
<
GEdge
*>
e
;
//
= _gf->edges();
std
::
list
<
GEdge
*>
e
=
_gf
->
edges
();
std
::
list
<
GEdge
*>::
const_iterator
it
=
e
.
begin
();
std
::
map
<
MVertex
*
,
double
>
sizes
;
...
...
@@ -278,8 +278,7 @@ crossField2d::crossField2d(MVertex* v, GEdge* ge)
void
backgroundMesh
::
propagateCrossFieldByDistance
(
GFace
*
_gf
)
{
std
::
list
<
GEdge
*>
e
;
std
::
list
<
GEdge
*>
e
=
_gf
->
edges
();
std
::
list
<
GEdge
*>::
const_iterator
it
=
e
.
begin
();
std
::
map
<
MVertex
*
,
double
>
_cosines4
,
_sines4
;
std
::
map
<
MVertex
*
,
SPoint2
>
_param
;
...
...
@@ -437,11 +436,8 @@ void backgroundMesh::propagateCrossFieldHJ(GFace *_gf)
void
backgroundMesh
::
propagateCrossField
(
GFace
*
_gf
,
simpleFunction
<
double
>
*
ONE
)
{
std
::
map
<
MVertex
*
,
double
>
_cosines4
,
_sines4
;
std
::
list
<
GEdge
*>
e
;
std
::
list
<
GEdge
*>
e
=
_gf
->
edges
();
std
::
list
<
GEdge
*>::
const_iterator
it
=
e
.
begin
();
for
(
;
it
!=
e
.
end
();
++
it
){
if
(
!
(
*
it
)
->
isSeam
(
_gf
)){
for
(
unsigned
int
i
=
0
;
i
<
(
*
it
)
->
lines
.
size
();
i
++
){
...
...
This diff is collapsed.
Click to expand it.
Mesh/BackgroundMesh2D.cpp
+
4
−
4
View file @
df3e2650
...
...
@@ -288,7 +288,7 @@ void backgroundMesh2D::computeSizeField()
return
;
}
list
<
GEdge
*>
e
;
list
<
GEdge
*>
e
=
face
->
edges
()
;
list
<
GEdge
*>::
const_iterator
it
=
e
.
begin
();
DoubleStorageType
sizes
;
...
...
@@ -391,7 +391,8 @@ void backgroundMesh2D::updateSizes()
frameFieldBackgroundMesh2D
::
frameFieldBackgroundMesh2D
(
GFace
*
_gf
)
:
backgroundMesh2D
(
_gf
,
false
)
frameFieldBackgroundMesh2D
::
frameFieldBackgroundMesh2D
(
GFace
*
_gf
)
:
backgroundMesh2D
(
_gf
,
false
)
{
reset
();
...
...
@@ -473,13 +474,12 @@ void frameFieldBackgroundMesh2D::computeCrossField(simpleFunction<double> &eval_
DoubleStorageType
_cosines4
,
_sines4
;
list
<
GEdge
*>
e
;
GFace
*
face
=
dynamic_cast
<
GFace
*>
(
gf
);
if
(
!
face
){
Msg
::
Error
(
"Entity is not a face in background mesh"
);
return
;
}
list
<
GEdge
*>
e
=
face
->
edges
();
list
<
GEdge
*>::
const_iterator
it
=
e
.
begin
();
for
(
;
it
!=
e
.
end
();
++
it
){
...
...
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