BUG: sampledSet: restore moving flag

This commit is contained in:
mattijs
2015-11-25 17:17:29 +00:00
parent d5d35cd1e8
commit 907c9390e3
2 changed files with 5 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-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -169,6 +169,7 @@ void Foam::faceOnlySet::calcSamples
// Set points and cell/face labels to empty lists // Set points and cell/face labels to empty lists
//Info<< "calcSamples : Both start_ and end_ outside domain" //Info<< "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-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -276,6 +276,8 @@ 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;
} }