mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: cyclicPeriodic: wrong indexing. Fixes #838.
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2015 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2015-2018 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -548,10 +548,13 @@ void Foam::cyclicPeriodicAMIPolyPatch::resetAMI
|
|||||||
if (nFace)
|
if (nFace)
|
||||||
{
|
{
|
||||||
scalarField srcWghtSum(size(), 0);
|
scalarField srcWghtSum(size(), 0);
|
||||||
scalarField tgtWghtSum(size(), 0);
|
forAll(srcWghtSum, faceI)
|
||||||
forAll(*this, faceI)
|
|
||||||
{
|
{
|
||||||
srcWghtSum[faceI] = sum(AMIPtr_->srcWeights()[faceI]);
|
srcWghtSum[faceI] = sum(AMIPtr_->srcWeights()[faceI]);
|
||||||
|
}
|
||||||
|
scalarField tgtWghtSum(neighbPatch().size(), 0);
|
||||||
|
forAll(tgtWghtSum, faceI)
|
||||||
|
{
|
||||||
tgtWghtSum[faceI] = sum(AMIPtr_->tgtWeights()[faceI]);
|
tgtWghtSum[faceI] = sum(AMIPtr_->tgtWeights()[faceI]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user