Permalink
Browse files

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

  • Loading branch information...
1 parent 03c0f35 commit cae1e2db065268a6d39d0e15e29a860b53705d00 mattijs committed May 15, 2012
@@ -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 =
(rpm_*constant::mathematical::pi/30.0)*(hatAxis) ^ d;

0 comments on commit cae1e2d

Please sign in to comment.