sampling: Corrected the order of the mid point of a line-cell sampled set
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 | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -204,7 +204,7 @@ void Foam::sampledSets::lineFace::calcSamples
|
|||||||
|
|
||||||
// If storing cells we need to store the starting cells between
|
// If storing cells we need to store the starting cells between
|
||||||
// the tracks
|
// the tracks
|
||||||
if (proci == Pstream::myProcNo() && i == 1 && storeCells)
|
if (proci == Pstream::myProcNo() && i == 0 && storeCells)
|
||||||
{
|
{
|
||||||
particle trackBwd(mesh, p, celli), trackFwd(trackBwd);
|
particle trackBwd(mesh, p, celli), trackFwd(trackBwd);
|
||||||
trackBwd.trackToFace(start - p, 0);
|
trackBwd.trackToFace(start - p, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user