From 907c9390e322b705d3b5eb0a2cde8f47a57a04b9 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 25 Nov 2015 17:17:29 +0000 Subject: [PATCH] BUG: sampledSet: restore moving flag --- src/sampling/sampledSet/face/faceOnlySet.C | 3 ++- src/sampling/sampledSet/uniform/uniformSet.C | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/sampling/sampledSet/face/faceOnlySet.C b/src/sampling/sampledSet/face/faceOnlySet.C index 85fb7bc74b..1257807e2b 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-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -169,6 +169,7 @@ void Foam::faceOnlySet::calcSamples // Set points and cell/face labels to empty lists //Info<< "calcSamples : Both start_ and end_ outside domain" // << endl; + const_cast(mesh()).moving(oldMoving); return; } diff --git a/src/sampling/sampledSet/uniform/uniformSet.C b/src/sampling/sampledSet/uniform/uniformSet.C index 9689218ae5..4c2650c443 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-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -276,6 +276,8 @@ void Foam::uniformSet::calcSamples // (or is along edge) // Set points and cell/face labels to empty lists + const_cast(mesh()).moving(oldMoving); + return; }