ENH: Use strict type lookup class for MapDimensionedFields
This commit is contained in:
parent
368b543831
commit
218c34fc00
@ -45,19 +45,7 @@ void MapDimensionedFields(const MeshMapper& mapper)
|
||||
typedef DimensionedField<Type, GeoMesh> FieldType;
|
||||
typedef HashTable<const FieldType*> TableType;
|
||||
|
||||
TableType fields(mapper.thisDb().size());
|
||||
|
||||
forAllConstIter(objectRegistry, mapper.thisDb(), iter)
|
||||
{
|
||||
if (isType<FieldType>(*iter()))
|
||||
{
|
||||
fields.insert
|
||||
(
|
||||
iter()->name(),
|
||||
dynamic_cast<const FieldType*>(iter())
|
||||
);
|
||||
}
|
||||
}
|
||||
TableType fields(mapper.thisDb().template lookupClass<FieldType>(true));
|
||||
|
||||
forAllConstIter(typename TableType, fields, fieldIter)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user