foamDictionary: Set expanded dictionary format to ascii

This commit is contained in:
Henry Weller
2020-09-14 12:13:09 +01:00
parent f72a30fe62
commit ea036dfec8

View File

@ -475,6 +475,18 @@ int main(int argc, char *argv[])
{
IOobject::writeBanner(Info)
<<"//\n// " << dictPath << "\n//\n";
// Change the format to ASCII
if (dict.found(IOobject::foamFile))
{
dict.subDict(IOobject::foamFile).add
(
"format",
IOstream::ASCII,
true
);
}
dict.dictionary::write(Info, false);
IOobject::writeDivider(Info);