ENH: use typed lookup versions instead of xyz::typeName literals

This commit is contained in:
Mark Olesen
2022-05-16 17:33:01 +02:00
parent 95e2a2e887
commit b712e7289e
12 changed files with 76 additions and 116 deletions

View File

@ -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;