mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Function objects - updated logic to determine whether or not to instantiate a time-based function object. Fixes #439
This commit is contained in:
@ -50,6 +50,7 @@ const Foam::NamedEnum<Foam::timeControl::timeControls, 9>
|
||||
Foam::timeControl::timeControlNames_;
|
||||
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::timeControl::timeControl
|
||||
@ -78,6 +79,23 @@ Foam::timeControl::~timeControl()
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
bool Foam::timeControl::entriesPresent
|
||||
(
|
||||
const dictionary& dict,
|
||||
const word& prefix
|
||||
)
|
||||
{
|
||||
const word controlName(prefix + "Control");
|
||||
|
||||
if (dict.found(controlName))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void Foam::timeControl::read(const dictionary& dict)
|
||||
{
|
||||
word controlName(prefix_ + "Control");
|
||||
|
||||
Reference in New Issue
Block a user