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
c31f575d
Commit
c31f575d
authored
14 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
add some debugging info
parent
2b69139c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Geo/GModel.cpp
+21
-1
21 additions, 1 deletion
Geo/GModel.cpp
with
21 additions
and
1 deletion
Geo/GModel.cpp
+
21
−
1
View file @
c31f575d
...
...
@@ -1132,6 +1132,8 @@ static int connectedSurfaceBoundaries(std::set<MEdge, Less_Edge> &edges,
void
GModel
::
makeDiscreteFacesSimplyConnected
()
{
Msg
::
Debug
(
"Making discrete faces simply connected..."
);
std
::
vector
<
discreteFace
*>
discFaces
;
for
(
fiter
it
=
firstFace
();
it
!=
lastFace
();
it
++
)
if
((
*
it
)
->
geomType
()
==
GEntity
::
DiscreteSurface
)
...
...
@@ -1176,6 +1178,8 @@ void GModel::makeDiscreteFacesSimplyConnected()
(
f
->
mesh_vertices
.
begin
(),
myVertices
.
begin
(),
myVertices
.
end
());
}
}
Msg
::
Debug
(
"Done making discrete faces simply connected"
);
}
void
GModel
::
createTopologyFromMesh
()
...
...
@@ -1210,6 +1214,8 @@ void GModel::createTopologyFromMesh()
void
GModel
::
createTopologyFromRegions
(
std
::
vector
<
discreteRegion
*>
&
discRegions
)
{
Msg
::
Debug
(
"Creating topology from regions..."
);
// find boundary mesh faces of each discrete region and put them in
// map_faces, which associates each MFace with the tags of the
// adjacent regions
...
...
@@ -1230,6 +1236,8 @@ void GModel::createTopologyFromRegions(std::vector<discreteRegion*> &discRegions
while
(
!
map_faces
.
empty
()){
Msg
::
Debug
(
"... %d mesh faces left to process"
,
map_faces
.
size
());
std
::
set
<
MFace
,
Less_Face
>
myFaces
;
std
::
vector
<
int
>
tagRegions
=
map_faces
.
begin
()
->
second
;
myFaces
.
insert
(
map_faces
.
begin
()
->
first
);
...
...
@@ -1356,10 +1364,14 @@ void GModel::createTopologyFromRegions(std::vector<discreteRegion*> &discRegions
(
*
it
)
->
setBoundFaces
(
bcFaces
);
}
}
Msg
::
Debug
(
"Done creating topology from regions"
);
}
void
GModel
::
createTopologyFromFaces
(
std
::
vector
<
discreteFace
*>
&
discFaces
)
{
Msg
::
Debug
(
"Creating topology from faces..."
);
// find boundary mesh edges of each discrete face and put them in
// map_edges, which associates each MEdge with the tags of the
// adjacent faces
...
...
@@ -1383,6 +1395,9 @@ void GModel::createTopologyFromFaces(std::vector<discreteFace*> &discFaces)
std
::
map
<
int
,
std
::
vector
<
int
>
>
face2Edges
;
while
(
!
map_edges
.
empty
()){
Msg
::
Debug
(
"... %d mesh edges left to process"
,
map_edges
.
size
());
std
::
set
<
MEdge
,
Less_Edge
>
myEdges
;
std
::
vector
<
int
>
tagFaces
=
map_edges
.
begin
()
->
second
;
myEdges
.
insert
(
map_edges
.
begin
()
->
first
);
...
...
@@ -1495,6 +1510,9 @@ void GModel::createTopologyFromFaces(std::vector<discreteFace*> &discFaces)
}
}
Msg
::
Debug
(
"Done creating topology from faces"
);
Msg
::
Debug
(
"Creating topology for edges..."
);
// for each discreteEdge, create topology
std
::
map
<
GFace
*
,
std
::
map
<
MVertex
*
,
MVertex
*
,
std
::
less
<
MVertex
*>
>
>
face2Vert
;
std
::
map
<
GRegion
*
,
std
::
map
<
MVertex
*
,
MVertex
*
,
std
::
less
<
MVertex
*>
>
>
region2Vert
;
...
...
@@ -1548,7 +1566,7 @@ void GModel::createTopologyFromFaces(std::vector<discreteFace*> &discFaces)
gf
->
triangles
=
newTriangles
;
gf
->
quadrangles
=
newQuadrangles
;
}
for
(
std
::
map
<
GRegion
*
,
std
::
map
<
MVertex
*
,
MVertex
*
,
std
::
less
<
MVertex
*>
>
>::
iterator
iRegion
=
region2Vert
.
begin
();
iRegion
!=
region2Vert
.
end
();
iRegion
++
){
std
::
map
<
MVertex
*
,
MVertex
*
,
std
::
less
<
MVertex
*>
>
old2new
=
iRegion
->
second
;
...
...
@@ -1587,6 +1605,8 @@ void GModel::createTopologyFromFaces(std::vector<discreteFace*> &discFaces)
gr
->
prisms
=
newPrisms
;
gr
->
pyramids
=
newPyramids
;
}
Msg
::
Debug
(
"Done creating topology from edges"
);
}
GModel
*
GModel
::
buildCutGModel
(
gLevelset
*
ls
,
bool
cutElem
)
...
...
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