From 54fb312457b01bac718cd57aa80b9fbffa866fe6 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Wed, 26 Jan 2022 16:36:28 +0000 Subject: [PATCH] sampling: Corrected the order of the mid point of a line-cell sampled set --- src/sampling/sampledSet/lineFace/lineFace.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sampling/sampledSet/lineFace/lineFace.C b/src/sampling/sampledSet/lineFace/lineFace.C index aff64e07ed..8e1e566d91 100644 --- a/src/sampling/sampledSet/lineFace/lineFace.C +++ b/src/sampling/sampledSet/lineFace/lineFace.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -204,7 +204,7 @@ void Foam::sampledSets::lineFace::calcSamples // If storing cells we need to store the starting cells between // the tracks - if (proci == Pstream::myProcNo() && i == 1 && storeCells) + if (proci == Pstream::myProcNo() && i == 0 && storeCells) { particle trackBwd(mesh, p, celli), trackFwd(trackBwd); trackBwd.trackToFace(start - p, 0);