35 void Foam::setUpdater::updateSets(
const mapPolyMesh& morphMap)
const 41 HashTable<const Type*> memSets =
42 morphMap.mesh().objectRegistry::lookupClass<Type>();
44 forAllIter(
typename HashTable<const Type*>, memSets, iter)
46 Type&
set =
const_cast<Type&
>(*iter());
50 Pout<<
"Set:" <<
set.
name() <<
" size:" <<
set.size()
51 <<
" updated in memory" <<
endl;
54 set.updateMesh(morphMap);
68 morphMap.mesh().time(),
69 morphMap.mesh().facesInstance(),
73 IOobjectList fileSets(Objects.lookupClass(Type::typeName));
77 if (!memSets.found(iter.key()))
84 Pout<<
"Set:" <<
set.
name() <<
" size:" <<
set.size()
85 <<
" updated on disk" <<
endl;
88 set.updateMesh(morphMap);
96 Pout<<
"Set:" << iter.key() <<
" already updated from memory" virtual const fileName & name() const
Return the name of the stream.
virtual Ostream & write(const char)=0
Write character.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
prefixOSstream Pout(cout, "Pout")