mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: useless copy of input (primitiveMeshTools::makeCellCentresAndVols)
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2012-2016 OpenFOAM Foundation
|
Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||||
Copyright (C) 2017-2019 OpenCFD Ltd.
|
Copyright (C) 2017-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -114,9 +114,9 @@ void Foam::primitiveMeshTools::makeCellCentresAndVols
|
|||||||
{
|
{
|
||||||
typedef Vector<solveScalar> solveVector;
|
typedef Vector<solveScalar> solveVector;
|
||||||
|
|
||||||
PrecisionAdaptor<solveVector, vector> tcellCtrs(cellCtrs_s);
|
PrecisionAdaptor<solveVector, vector> tcellCtrs(cellCtrs_s, false);
|
||||||
|
PrecisionAdaptor<solveScalar, scalar> tcellVols(cellVols_s, false);
|
||||||
Field<solveVector>& cellCtrs = tcellCtrs.ref();
|
Field<solveVector>& cellCtrs = tcellCtrs.ref();
|
||||||
PrecisionAdaptor<solveScalar, scalar> tcellVols(cellVols_s);
|
|
||||||
Field<solveScalar>& cellVols = tcellVols.ref();
|
Field<solveScalar>& cellVols = tcellVols.ref();
|
||||||
|
|
||||||
// Clear the fields for accumulation
|
// Clear the fields for accumulation
|
||||||
|
|||||||
Reference in New Issue
Block a user