mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: errors found in feature-vtm merge !213
- vtkWrite with moving mesh was not updated the subsets properly, which caused it to crash. - foamToVTK -overwrite ignored for single region cases, was working for multi-region cases - minor documentation changes
This commit is contained in:
@ -607,19 +607,24 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (Pstream::master())
|
||||
{
|
||||
// Overwrite or create the VTK/regionName directories.
|
||||
// For the default region, this is simply "VTK/"
|
||||
|
||||
fileName regionDir;
|
||||
for (const word& regionName : regionNames)
|
||||
{
|
||||
// VTK/regionName directory in the case
|
||||
|
||||
fileName regionDir;
|
||||
if (regionName != polyMesh::defaultRegion)
|
||||
{
|
||||
regionDir = outputDir / regionName;
|
||||
}
|
||||
else
|
||||
{
|
||||
regionDir = outputDir;
|
||||
}
|
||||
|
||||
if (args.found("overwrite") && isDir(regionDir))
|
||||
{
|
||||
Info<< "Deleting old VTK files in "
|
||||
Info<< "Removing old directory "
|
||||
<< regionDir.relative(runTime.globalPath())
|
||||
<< nl << endl;
|
||||
rmDir(regionDir);
|
||||
|
||||
Reference in New Issue
Block a user