Skip to content
Snippets Groups Projects
Commit 6c60b19c authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: caseInfo function object - set file extension to output file type

parent 697e6147
Branches
Tags
1 merge request!722RELEASE: develop branch to master
......@@ -420,12 +420,13 @@ bool Foam::functionObjects::caseInfo::read(const dictionary& dict)
if (stateFunctionObject::read(dict) && writeFile::read(dict))
{
writeFormatNames_.readIfPresent("writeFormat", dict, writeFormat_);
writeFile::setExt("." + writeFormatNames_[writeFormat_]);
lookupModeNames_.readIfPresent("lookupMode", dict, lookupMode_);
dictionaries_ = dict.subOrEmptyDict("dictionaries");
functionObjectNames_ =
dict.getOrDefault<wordList>("functionObjects", wordList());
dict.readIfPresent("functionObjects", functionObjectNames_);
return true;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment