BUG: cylindricalInletVelocity: use of tmp after storage has been reused

This commit is contained in:
mattijs
2012-05-15 16:24:01 +01:00
parent 8d4a600af6
commit f94ce80373

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -132,7 +132,7 @@ void Foam::cylindricalInletVelocityFvPatchVectorField::updateCoeffs()
vector hatAxis = axis_/mag(axis_);
const vectorField r(patch().Cf() - centre_);
tmp<vectorField> d = r - (hatAxis & r)*hatAxis;
const vectorField d = r - (hatAxis & r)*hatAxis;
tmp<vectorField> tangVel
(