mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
functionObjects::regionFunctionObject: Added optional 'log' entry (defaults to true)
This commit is contained in:
@ -106,8 +106,7 @@ Foam::functionObjects::writeFile::writeFile
|
||||
)
|
||||
:
|
||||
regionFunctionObject(name, runTime, dict),
|
||||
prefix_(prefix),
|
||||
log_(true)
|
||||
prefix_(prefix)
|
||||
{}
|
||||
|
||||
|
||||
@ -120,8 +119,7 @@ Foam::functionObjects::writeFile::writeFile
|
||||
)
|
||||
:
|
||||
regionFunctionObject(name, obr, dict),
|
||||
prefix_(prefix),
|
||||
log_(true)
|
||||
prefix_(prefix)
|
||||
{}
|
||||
|
||||
|
||||
@ -133,14 +131,6 @@ Foam::functionObjects::writeFile::~writeFile()
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
bool Foam::functionObjects::writeFile::read(const dictionary& dict)
|
||||
{
|
||||
log_ = dict.lookupOrDefault<Switch>("log", true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Foam::label Foam::functionObjects::writeFile::charWidth() const
|
||||
{
|
||||
return IOstream::defaultPrecision() + addChars;
|
||||
|
||||
Reference in New Issue
Block a user