STYLE: remove erroneous reference in dynamicCast use

This commit is contained in:
Mark Olesen
2021-05-31 09:02:57 +02:00
parent 5d9e42cb70
commit 0ba43df9c5
7 changed files with 63 additions and 76 deletions

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2018 OpenCFD Ltd.
Copyright (C) 2018-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -162,20 +162,20 @@ Foam::label Foam::cuttingPlane::calcCellCuts
if (debug && isA<fvMesh>(mesh))
{
const fvMesh& fvm = dynamicCast<const fvMesh&>(mesh);
const auto& fvmesh = dynamicCast<const fvMesh>(mesh);
volScalarField cCuts
(
IOobject
(
"cuttingPlane.cellCuts",
fvm.time().timeName(),
fvm.time(),
fvmesh.time().timeName(),
fvmesh.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
),
fvm,
fvmesh,
dimensionedScalar(dimless, Zero)
);

View File

@ -1196,7 +1196,7 @@ Foam::isoSurfaceCell::isoSurfaceCell
if (debug && isA<fvMesh>(mesh))
{
const fvMesh& fvmesh = dynamicCast<const fvMesh&>(mesh);
const auto& fvmesh = dynamicCast<const fvMesh>(mesh);
volScalarField debugField
(

View File

@ -1021,7 +1021,7 @@ Foam::isoSurfaceTopo::isoSurfaceTopo
if (debug && isA<fvMesh>(mesh))
{
const fvMesh& fvmesh = dynamicCast<const fvMesh&>(mesh);
const auto& fvmesh = dynamicCast<const fvMesh>(mesh);
volScalarField debugField
(