Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
d47133ae
Commit
d47133ae
authored
Apr 07, 2011
by
mattijs
Browse files
ENH: polyMeshTetDecmoposition: move List allocation outside loop
parent
b89f6082
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/polyMeshTetDecomposition/polyMeshTetDecomposition.C
View file @
d47133ae
...
@@ -55,6 +55,8 @@ Foam::label Foam::polyMeshTetDecomposition::findSharedBasePoint
...
@@ -55,6 +55,8 @@ Foam::label Foam::polyMeshTetDecomposition::findSharedBasePoint
const
point
&
oCc
=
pC
[
oCI
];
const
point
&
oCc
=
pC
[
oCI
];
List
<
scalar
>
tetQualities
(
2
,
0
.
0
);
forAll
(
f
,
faceBasePtI
)
forAll
(
f
,
faceBasePtI
)
{
{
scalar
thisBaseMinTetQuality
=
VGREAT
;
scalar
thisBaseMinTetQuality
=
VGREAT
;
...
@@ -66,8 +68,6 @@ Foam::label Foam::polyMeshTetDecomposition::findSharedBasePoint
...
@@ -66,8 +68,6 @@ Foam::label Foam::polyMeshTetDecomposition::findSharedBasePoint
label
facePtI
=
(
tetPtI
+
faceBasePtI
)
%
f
.
size
();
label
facePtI
=
(
tetPtI
+
faceBasePtI
)
%
f
.
size
();
label
otherFacePtI
=
f
.
fcIndex
(
facePtI
);
label
otherFacePtI
=
f
.
fcIndex
(
facePtI
);
List
<
scalar
>
tetQualities
(
2
,
0
.
0
);
{
{
// owner cell tet
// owner cell tet
label
ptAI
=
f
[
facePtI
];
label
ptAI
=
f
[
facePtI
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment