Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
integration-cfmesh
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
Container registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Community
integration-cfmesh
Commits
dab7b668
Commit
dab7b668
authored
10 years ago
by
Franjo
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup of triSurfAddressing
parent
8a65401d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
meshLibrary/utilities/meshes/triSurf/triSurfAddressing.C
+4
-11
4 additions, 11 deletions
meshLibrary/utilities/meshes/triSurf/triSurfAddressing.C
with
4 additions
and
11 deletions
meshLibrary/utilities/meshes/triSurf/triSurfAddressing.C
+
4
−
11
View file @
dab7b668
...
@@ -81,28 +81,22 @@ void triSurfAddressing::calculateEdges() const
...
@@ -81,28 +81,22 @@ void triSurfAddressing::calculateEdges() const
const
label
triI
=
pFacets
(
pI
,
pfI
);
const
label
triI
=
pFacets
(
pI
,
pfI
);
const
labelledTri
&
tri
=
facets_
[
triI
];
const
labelledTri
&
tri
=
facets_
[
triI
];
label
pos
(
-
1
);
forAll
(
tri
,
i
)
forAll
(
tri
,
i
)
{
{
if
(
tri
[
i
]
==
pI
)
if
(
tri
[
i
]
==
pI
)
{
{
pos
=
i
;
if
(
tri
[(
i
+
1
)
%
3
]
>=
pI
)
if
(
tri
[(
pos
+
1
)
%
3
]
>=
pI
)
edgesAtPoint
.
insert
edgesAtPoint
.
insert
(
(
std
::
make_pair
(
pI
,
tri
[(
pos
+
1
)
%
3
])
std
::
make_pair
(
pI
,
tri
[(
i
+
1
)
%
3
])
);
);
if
(
tri
[(
pos
+
2
)
%
3
]
>=
pI
)
if
(
tri
[(
i
+
2
)
%
3
]
>=
pI
)
edgesAtPoint
.
insert
edgesAtPoint
.
insert
(
(
std
::
make_pair
(
pI
,
tri
[(
pos
+
2
)
%
3
])
std
::
make_pair
(
pI
,
tri
[(
i
+
2
)
%
3
])
);
);
}
}
}
}
}
}
std
::
set
<
std
::
pair
<
label
,
label
>
>::
const_iterator
it
;
std
::
set
<
std
::
pair
<
label
,
label
>
>::
const_iterator
it
;
...
@@ -119,7 +113,6 @@ void triSurfAddressing::calculateEdges() const
...
@@ -119,7 +113,6 @@ void triSurfAddressing::calculateEdges() const
# endif
# endif
nEdgesForThread
[
threadI
]
=
edgesHelper
.
size
();
nEdgesForThread
[
threadI
]
=
edgesHelper
.
size
();
# ifdef USE_OMP
# ifdef USE_OMP
# pragma omp critical
# pragma omp critical
# 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