mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use typed lookup versions instead of xyz::typeName literals
This commit is contained in:
@ -116,11 +116,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
|
||||
// volScalarField
|
||||
for
|
||||
(
|
||||
const word& fieldName
|
||||
: objects.sortedNames(volScalarField::typeName)
|
||||
)
|
||||
for (const word& fieldName : objects.sortedNames<volScalarField>())
|
||||
{
|
||||
// Lookup field from dictionary and convert field
|
||||
label unitNumber;
|
||||
@ -140,11 +136,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
|
||||
// volVectorField
|
||||
for
|
||||
(
|
||||
const word& fieldName
|
||||
: objects.sortedNames(volVectorField::typeName)
|
||||
)
|
||||
for (const word& fieldName : objects.sortedNames<volVectorField>())
|
||||
{
|
||||
// Lookup field from dictionary and convert field
|
||||
label unitNumber;
|
||||
|
||||
Reference in New Issue
Block a user