Go to the documentation of this file.
33 template<
typename SetType>
37 map.
mesh().objectRegistry::lookupClass<
const SetType>();
41 SetType& set =
const_cast<SetType&
>(*iter());
57 if (!sets.
found(iter.key()))
69 template<
typename SetType>
77 oldMesh.objectRegistry::lookupClass<
const SetType>();
81 const SetType& set = *iter();
83 if (newMesh.objectRegistry::foundObject<SetType>(set.name()))
85 const SetType& origSet =
86 newMesh.objectRegistry::lookupObject<SetType>(set.name());
88 const_cast<SetType&
>(origSet) = set;
89 const_cast<SetType&
>(origSet).sync(newMesh);
95 new SetType(newMesh, set.
name(), set, set.writeOpt())
99 newSet->sync(newMesh);
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
const Time & time() const
Return time.
const fileName & facesInstance() const
Return the current instance directory for faces.
Mesh consisting of general polyhedral cells.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
static void updateSets(const mapPolyMesh &map)
const word & name() const
Return name.
bool found(const Key &) const
Return true if hashedEntry is found in table.
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
List of IOobjects with searching and retrieving facilities.
An STL-conforming hash table.
static void copySets(const polyMesh &oldMesh, const polyMesh &newMesh)
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const polyMesh & mesh() const
Return polyMesh.