diff --git a/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshTools.C b/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshTools.C index 46b62d3466bfcce3a29d30b5f89baedd646ecbcd..5f038e94d8c09eab086bc8ef15907d4b37d860c2 100644 --- a/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshTools.C +++ b/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshTools.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2012-2016 OpenFOAM Foundation - Copyright (C) 2017-2019 OpenCFD Ltd. + Copyright (C) 2017-2021 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -114,9 +114,9 @@ void Foam::primitiveMeshTools::makeCellCentresAndVols { 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(); - PrecisionAdaptor<solveScalar, scalar> tcellVols(cellVols_s); Field<solveScalar>& cellVols = tcellVols.ref(); // Clear the fields for accumulation