From 9761bb96fd277da8da02b554e9033f24018fea7a Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 10 Apr 2013 22:17:20 +0100 Subject: [PATCH] fourthGrad: rename leastSquares grad to avoid cache corruption problems --- .../finiteVolume/gradSchemes/fourthGrad/fourthGrad.C | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/finiteVolume/gradSchemes/fourthGrad/fourthGrad.C b/src/finiteVolume/finiteVolume/gradSchemes/fourthGrad/fourthGrad.C index a5b561f8fd..2293c126db 100644 --- a/src/finiteVolume/finiteVolume/gradSchemes/fourthGrad/fourthGrad.C +++ b/src/finiteVolume/finiteVolume/gradSchemes/fourthGrad/fourthGrad.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -62,7 +62,11 @@ Foam::fv::fourthGrad::calcGrad // Assemble the second-order least-square gradient // Calculate the second-order least-square gradient tmp > tsecondfGrad - = leastSquaresGrad(mesh).grad(vsf); + = leastSquaresGrad(mesh).grad + ( + vsf, + "leastSquaresGrad(" + vsf.name() + ")" + ); const GeometricField& secondfGrad = tsecondfGrad();