functionObjectList: Rationalized and simplified the handling of disabled functionObjects

Simplified and generalized the handling of functionObjects which fail to
construct by removing them from the list rather than maintaining an
"enabled" switch in each functionObject.
This commit is contained in:
Henry Weller
2016-05-11 09:03:52 +01:00
parent 080908732d
commit 32dbb01e96
9 changed files with 222 additions and 271 deletions

View File

@ -699,7 +699,7 @@ Foam::Time::~Time()
removeWatch(controlDict_.watchIndex());
}
// destroy function objects first
// Destroy function objects first
functionObjects_.clear();
}