Keep copy rather than reference to returned object.
Resolves bug report http://www.openfoam.org/mantisbt/view.php?id=1454
This commit is contained in:
@ -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-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -681,7 +681,7 @@ Foam::label Foam::polyTopoChange::getCellOrder
|
|||||||
cellInOrder++;
|
cellInOrder++;
|
||||||
|
|
||||||
// find if the neighbours have been visited
|
// find if the neighbours have been visited
|
||||||
const labelList& neighbours = cellCellAddressing[currentCell];
|
const labelUList neighbours = cellCellAddressing[currentCell];
|
||||||
|
|
||||||
// Add in increasing order of connectivity
|
// Add in increasing order of connectivity
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user