faceOnlySet, uniformSet: Reset mesh.moving before returning

Resolves bug-report https://bugs.openfoam.org/view.php?id=2514
This commit is contained in:
Henry Weller
2017-03-29 23:15:32 +01:00
parent 09620ce0ed
commit 982300f0d8
2 changed files with 4 additions and 2 deletions

View File

@ -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) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -166,6 +166,7 @@ void Foam::faceOnlySet::calcSamples
// Pout<< "calcSamples : Both start_ and end_ outside domain" // Pout<< "calcSamples : Both start_ and end_ outside domain"
// << endl; // << endl;
const_cast<polyMesh&>(mesh()).moving(oldMoving);
return; return;
} }

View File

@ -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) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -278,6 +278,7 @@ void Foam::uniformSet::calcSamples
// (or is along edge) // (or is along edge)
// Set points and cell/face labels to empty lists // Set points and cell/face labels to empty lists
const_cast<polyMesh&>(mesh()).moving(oldMoving);
return; return;
} }