mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use singleton method for accessing runtime selection
STYLE: use alias to mark partialFaceAreaWeightAMI deprecation after v2012
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2016-2017 Wikki Ltd
|
||||
Copyright (C) 2019 OpenCFD Ltd.
|
||||
Copyright (C) 2019-2021 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -61,9 +61,9 @@ Foam::edgeInterpolationScheme<Type>::New
|
||||
|
||||
const word schemeName(schemeData);
|
||||
|
||||
auto cstrIter = MeshConstructorTablePtr_->cfind(schemeName);
|
||||
auto* ctorPtr = MeshConstructorTable(schemeName);
|
||||
|
||||
if (!cstrIter.found())
|
||||
if (!ctorPtr)
|
||||
{
|
||||
FatalIOErrorInLookup
|
||||
(
|
||||
@ -74,7 +74,7 @@ Foam::edgeInterpolationScheme<Type>::New
|
||||
) << exit(FatalIOError);
|
||||
}
|
||||
|
||||
return cstrIter()(mesh, schemeData);
|
||||
return ctorPtr(mesh, schemeData);
|
||||
}
|
||||
|
||||
|
||||
@ -106,9 +106,9 @@ Foam::edgeInterpolationScheme<Type>::New
|
||||
|
||||
const word schemeName(schemeData);
|
||||
|
||||
auto cstrIter = MeshFluxConstructorTablePtr_->cfind(schemeName);
|
||||
auto* ctorPtr = MeshFluxConstructorTable(schemeName);
|
||||
|
||||
if (!cstrIter.found())
|
||||
if (!ctorPtr)
|
||||
{
|
||||
FatalIOErrorInLookup
|
||||
(
|
||||
@ -119,7 +119,7 @@ Foam::edgeInterpolationScheme<Type>::New
|
||||
) << exit(FatalIOError);
|
||||
}
|
||||
|
||||
return cstrIter()(mesh, faceFlux, schemeData);
|
||||
return ctorPtr(mesh, faceFlux, schemeData);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user