mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Function objects - notify when writing results
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user