ENH: Function objects - notify when writing results

This commit is contained in:
andy
2013-08-14 11:10:27 +01:00
parent 00800bbc1d
commit 98cc307aec
14 changed files with 47 additions and 26 deletions

View File

@ -78,6 +78,10 @@ void Foam::removeRegisteredObject::execute()
if (obj.ownedByRegistry())
{
Info<< type() << " " << name_ << " output:" << nl
<< " removing object " << obj.name() << nl
<< endl;
const_cast<regIOobject&>(obj).release();
delete &obj;
}

View File

@ -63,7 +63,7 @@ bool Foam::writeDictionary::tryFolder
{
if (firstDict)
{
Info<< type() << " output:" << nl << endl;
Info<< type() << " " << name_ << " output:" << nl << endl;
IOobject::writeDivider(Info);
Info<< endl;

View File

@ -98,6 +98,11 @@ void Foam::writeRegisteredObject::write()
);
// Switch off automatic writing to prevent double write
obj.writeOpt() = IOobject::NO_WRITE;
Info<< type() << " " << name_ << " output:" << nl
<< " writing object " << obj.name() << nl
<< endl;
obj.write();
}
else