Skip to content
Snippets Groups Projects
Commit 02271653 authored by andy's avatar andy
Browse files

ENH: revert to local interrogation of object registry contents

parent aadd377d
Branches
Tags
No related merge requests found
......@@ -45,10 +45,19 @@ void MapDimensionedFields(const MeshMapper& mapper)
typedef DimensionedField<Type, GeoMesh> FieldType;
typedef HashTable<const FieldType*> TableType;
TableType fields
(
mapper.thisDb().objectRegistry::template lookupClass<FieldType>(true)
);
TableType fields(mapper.thisDb().size());
forAllConstIter(objectRegistry, mapper.thisDb(), iter)
{
if (isType<FieldType>(*iter()))
{
fields.insert
(
iter()->name(),
dynamic_cast<const FieldType*>(iter())
);
}
}
forAllConstIter(typename TableType, fields, fieldIter)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment