From 982300f0d849f70ba899aaad0fa9ba4d489b4d58 Mon Sep 17 00:00:00 2001 From: Henry Weller <http://cfd.direct> Date: Wed, 29 Mar 2017 23:15:32 +0100 Subject: [PATCH] faceOnlySet, uniformSet: Reset mesh.moving before returning Resolves bug-report https://bugs.openfoam.org/view.php?id=2514 --- src/sampling/sampledSet/face/faceOnlySet.C | 3 ++- src/sampling/sampledSet/uniform/uniformSet.C | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sampling/sampledSet/face/faceOnlySet.C b/src/sampling/sampledSet/face/faceOnlySet.C index 9dbeee3dbb1..86b40e61c20 100644 --- a/src/sampling/sampledSet/face/faceOnlySet.C +++ b/src/sampling/sampledSet/face/faceOnlySet.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -166,6 +166,7 @@ void Foam::faceOnlySet::calcSamples // Pout<< "calcSamples : Both start_ and end_ outside domain" // << endl; + const_cast<polyMesh&>(mesh()).moving(oldMoving); return; } diff --git a/src/sampling/sampledSet/uniform/uniformSet.C b/src/sampling/sampledSet/uniform/uniformSet.C index f56b92d6dfb..89e368a3cc6 100644 --- a/src/sampling/sampledSet/uniform/uniformSet.C +++ b/src/sampling/sampledSet/uniform/uniformSet.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -278,6 +278,7 @@ void Foam::uniformSet::calcSamples // (or is along edge) // Set points and cell/face labels to empty lists + const_cast<polyMesh&>(mesh()).moving(oldMoving); return; } -- GitLab