BUG: foamFormatConvert: missing 'faces' file. Fixes #1529.

This commit is contained in:
mattijs 2019-12-18 14:59:36 +00:00
parent 4dc9c9dca2
commit 427f92215c
2 changed files with 7 additions and 4 deletions

View File

@ -315,7 +315,8 @@ int main(int argc, char *argv[])
(
"cells",
meshDir,
runTime
runTime,
false // do not check typeName since varies between binary/ascii
);
writeMeshObject<labelIOList>("owner", meshDir, runTime);
writeMeshObject<labelIOList>("neighbour", meshDir, runTime);
@ -323,7 +324,8 @@ int main(int argc, char *argv[])
(
"faces",
meshDir,
runTime
runTime,
false // do not check typeName since varies between binary/ascii
);
writeMeshObject<pointIOField>("points", meshDir, runTime);
// Write boundary in ascii. This is only needed for fileHandler to

View File

@ -47,7 +47,8 @@ inline bool writeMeshObject
const word& name,
const fileName& meshDir,
Time& runTime,
bool disableHeaderChecking = false
const bool strictTypeChecking = true,
const bool disableHeaderChecking = false
)
{
IOobject io
@ -63,7 +64,7 @@ inline bool writeMeshObject
bool writeOk = false;
if (io.typeHeaderOk<CheckType>(true, true, false))
if (io.typeHeaderOk<CheckType>(strictTypeChecking, true, false))
{
Info<< " Reading " << io.headerClassName()
<< " : " << name << endl;