37template<
class SetType>
38void Foam::setUpdater::updateSets(
const mapPolyMesh& map)
48 const HashTable<const SetType*> sets
50 map.mesh().objectRegistry::lookupClass<
const SetType>()
53 for (
const auto& iter : sets.csorted())
55 SetType&
set =
const_cast<SetType&
>(*iter.val());
58 <<
"Set:" <<
set.name() <<
" size:" <<
set.size()
59 <<
" updated in memory" <<
endl;
76 map.mesh().facesInstance(),
80 for (
const IOobject&
io : objs.csorted<SetType>())
82 if (!sets.contains(
io.name()))
88 <<
"Set:" <<
set.name() <<
" size:" <<
set.size()
89 <<
" updated on disk" <<
endl;
97 <<
"Set:" <<
io.name()
98 <<
" already updated from memory" <<
endl;
#define DebugPout
Report an information message using Foam::Pout.
void set(List< bool > &bools, const labelUList &locations)
Set the listed locations (assign 'true').
Ostream & endl(Ostream &os)
Add newline and flush stream.