mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
fourthGrad: rename leastSquares grad to avoid cache corruption problems
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-2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -62,7 +62,11 @@ Foam::fv::fourthGrad<Type>::calcGrad
|
|||||||
// Assemble the second-order least-square gradient
|
// Assemble the second-order least-square gradient
|
||||||
// Calculate the second-order least-square gradient
|
// Calculate the second-order least-square gradient
|
||||||
tmp<GeometricField<GradType, fvPatchField, volMesh> > tsecondfGrad
|
tmp<GeometricField<GradType, fvPatchField, volMesh> > tsecondfGrad
|
||||||
= leastSquaresGrad<Type>(mesh).grad(vsf);
|
= leastSquaresGrad<Type>(mesh).grad
|
||||||
|
(
|
||||||
|
vsf,
|
||||||
|
"leastSquaresGrad(" + vsf.name() + ")"
|
||||||
|
);
|
||||||
const GeometricField<GradType, fvPatchField, volMesh>& secondfGrad =
|
const GeometricField<GradType, fvPatchField, volMesh>& secondfGrad =
|
||||||
tsecondfGrad();
|
tsecondfGrad();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user