BUG: foamToVTK writes to undecomposed case (closes #1271)

- when running in serial but within a processor directory,
  argList::globalPath() is to be used instead of Time.globalPath()
  For other cases there is no difference.
This commit is contained in:
Mark Olesen
2019-04-08 11:53:50 +02:00
parent a2bd63869d
commit 8ab09daad0
5 changed files with 11 additions and 11 deletions

View File

@ -94,7 +94,7 @@ if (doLagrangian)
); );
Info<< " Lagrangian: " Info<< " Lagrangian: "
<< runTime.relativePath(writer.output()) << nl; << args.relativePath(writer.output()) << nl;
writer.writeTimeValue(mesh.time().value()); writer.writeTimeValue(mesh.time().value());
writer.writeGeometry(); writer.writeGeometry();

View File

@ -107,7 +107,7 @@ Description
); );
Info<< " Surface : " Info<< " Surface : "
<< runTime.relativePath(writer.output()) << nl; << args.relativePath(writer.output()) << nl;
writer.writeTimeValue(timeValue); writer.writeTimeValue(timeValue);
@ -211,7 +211,7 @@ Description
); );
Info<< " FaceZone : " Info<< " FaceZone : "
<< runTime.relativePath(writer.output()) << nl; << args.relativePath(writer.output()) << nl;
writer.beginFile(fz.name()); writer.beginFile(fz.name());

View File

@ -42,7 +42,7 @@ if (faceSetName.size())
); );
Info<< " faceSet : " Info<< " faceSet : "
<< runTime.relativePath(outputName) << nl; << args.relativePath(outputName) << nl;
vtk::writeFaceSet vtk::writeFaceSet
( (
@ -70,7 +70,7 @@ if (pointSetName.size())
); );
Info<< " pointSet : " Info<< " pointSet : "
<< runTime.relativePath(outputName) << nl; << args.relativePath(outputName) << nl;
vtk::writePointSet vtk::writePointSet
( (

View File

@ -113,7 +113,7 @@ Description
); );
Info<< " Internal : " Info<< " Internal : "
<< runTime.relativePath(internalWriter->output()) << nl; << args.relativePath(internalWriter->output()) << nl;
internalWriter->writeTimeValue(mesh.time().value()); internalWriter->writeTimeValue(mesh.time().value());
internalWriter->writeGeometry(); internalWriter->writeGeometry();
@ -163,7 +163,7 @@ Description
); );
Info<< " Boundaries: " Info<< " Boundaries: "
<< runTime.relativePath(writer->output()) << nl; << args.relativePath(writer->output()) << nl;
writer->writeTimeValue(timeValue); writer->writeTimeValue(timeValue);
writer->writeGeometry(); writer->writeGeometry();
@ -229,7 +229,7 @@ Description
); );
Info<< " Boundary : " Info<< " Boundary : "
<< runTime.relativePath(writer->output()) << nl; << args.relativePath(writer->output()) << nl;
writer->writeTimeValue(timeValue); writer->writeTimeValue(timeValue);
writer->writeGeometry(); writer->writeGeometry();

View File

@ -575,7 +575,7 @@ int main(int argc, char *argv[])
fvMeshSubsetProxy::subsetType cellSubsetType = fvMeshSubsetProxy::NONE; fvMeshSubsetProxy::subsetType cellSubsetType = fvMeshSubsetProxy::NONE;
string vtkName = runTime.globalCaseName(); string vtkName = args.globalCaseName();
if (regionNames.size() == 1) if (regionNames.size() == 1)
{ {
@ -628,7 +628,7 @@ int main(int argc, char *argv[])
// Sub-directory for output // Sub-directory for output
const word vtkDirName = args.opt<word>("name", "VTK"); const word vtkDirName = args.opt<word>("name", "VTK");
const fileName outputDir(runTime.globalPath()/vtkDirName); const fileName outputDir(args.globalPath()/vtkDirName);
if (Pstream::master()) if (Pstream::master())
{ {
@ -650,7 +650,7 @@ int main(int argc, char *argv[])
if (args.found("overwrite") && isDir(regionDir)) if (args.found("overwrite") && isDir(regionDir))
{ {
Info<< "Removing old directory " Info<< "Removing old directory "
<< runTime.relativePath(regionDir) << args.relativePath(regionDir)
<< nl << endl; << nl << endl;
rmDir(regionDir); rmDir(regionDir);
} }