BUG: Corrected cloudInfo function object access to cloud names

This commit is contained in:
andy
2012-10-16 11:51:53 +01:00
parent 90be0ef222
commit 975afa3af9

View File

@ -74,10 +74,10 @@ void Foam::cloudInfo::read(const dictionary& dict)
functionObjectFile::resetNames(dict.lookup("clouds")); functionObjectFile::resetNames(dict.lookup("clouds"));
Info<< type() << ": "; Info<< type() << ": ";
if (names_.size()) if (names().size())
{ {
Info<< "applying to clouds:" << nl; Info<< "applying to clouds:" << nl;
forAllConstIter(wordHashSet, names_, iter) forAllConstIter(wordHashSet, names(), iter)
{ {
Info<< " " << iter.key() << nl; Info<< " " << iter.key() << nl;
} }
@ -110,7 +110,7 @@ void Foam::cloudInfo::write()
functionObjectFile::write(); functionObjectFile::write();
label i = 0; label i = 0;
forAllConstIter(wordHashSet, names_, iter) forAllConstIter(wordHashSet, names(), iter)
{ {
const word& cloudName = iter.key(); const word& cloudName = iter.key();