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:
@ -131,7 +131,7 @@ void doCorrectBoundaryConditions
|
||||
template<class FieldType>
|
||||
bool Foam::functionObjects::fvExpressionField::loadAndStore(const IOobject& io)
|
||||
{
|
||||
if (FieldType::typeName == io.headerClassName())
|
||||
if (io.isHeaderClass<FieldType>())
|
||||
{
|
||||
// Store field on mesh database
|
||||
Log << " Reading " << io.name()
|
||||
|
||||
@ -167,10 +167,10 @@ void Foam::functionObjects::streamLineBase::initInterpolations
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Cannot find field " << fieldName << nl
|
||||
<< "Valid scalar fields are:"
|
||||
<< flatOutput(mesh_.names(volScalarField::typeName)) << nl
|
||||
<< "Valid vector fields are:"
|
||||
<< flatOutput(mesh_.names(volVectorField::typeName))
|
||||
<< "Valid scalar fields: "
|
||||
<< flatOutput(mesh_.sortedNames<volScalarField>()) << nl
|
||||
<< "Valid vector fields: "
|
||||
<< flatOutput(mesh_.sortedNames<volVectorField>()) << nl
|
||||
<< exit(FatalError);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user