From f94ce803739daa02656492422b99629f41c7dde4 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Tue, 15 May 2012 16:24:01 +0100 Subject: [PATCH] BUG: cylindricalInletVelocity: use of tmp after storage has been reused --- .../cylindricalInletVelocityFvPatchVectorField.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C index 0348035314a..d41c428e74b 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C @@ -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 ( -- GitLab