Toponaming: make sure toposhapes have hashers

This commit is contained in:
bgbsww
2024-08-02 21:39:21 -04:00
parent 5f657bc1ce
commit e425f2367f
4 changed files with 16 additions and 15 deletions

View File

@@ -296,6 +296,16 @@ ComplexGeoData::getElementMappedNames(const IndexedName& element, bool needUnmap
return {std::make_pair(MappedName(element), ElementIDRefs())};
}
ElementMapPtr ComplexGeoData::resetElementMap(ElementMapPtr elementMap)
{
_elementMap.swap(elementMap);
// We expect that if the ComplexGeoData ( TopoShape ) has a hasher, then its elementMap will
// have the same one. Make sure that happens.
if ( _elementMap && ! _elementMap->hasher )
_elementMap->hasher = Hasher;
return elementMap;
}
std::vector<MappedElement> ComplexGeoData::getElementMap() const
{
flushElementMap();