Skip to content
GitLab
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
26bb05d6
Commit
26bb05d6
authored
May 24, 2018
by
mattijs
Browse files
BUG: cyclicPeriodic: wrong indexing. Fixes
#838
.
parent
417a2f6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/meshTools/AMIInterpolation/patches/cyclicPeriodicAMI/cyclicPeriodicAMIPolyPatch/cyclicPeriodicAMIPolyPatch.C
View file @
26bb05d6
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2015
-2018
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -548,10 +548,13 @@ void Foam::cyclicPeriodicAMIPolyPatch::resetAMI
if
(
nFace
)
{
scalarField
srcWghtSum
(
size
(),
0
);
scalarField
tgtWghtSum
(
size
(),
0
);
forAll
(
*
this
,
faceI
)
forAll
(
srcWghtSum
,
faceI
)
{
srcWghtSum
[
faceI
]
=
sum
(
AMIPtr_
->
srcWeights
()[
faceI
]);
}
scalarField
tgtWghtSum
(
neighbPatch
().
size
(),
0
);
forAll
(
tgtWghtSum
,
faceI
)
{
tgtWghtSum
[
faceI
]
=
sum
(
AMIPtr_
->
tgtWeights
()[
faceI
]);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment