systemDict: Consistent handling of the -dict option

The -dict option is now handled correctly and consistently across all
applications with -dict options. The logic associated with doing so has
been centralised.

If a relative path is given to the -dict option, then it is assumed to
be relative to the case directory. If an absolute path is given, then it
is used without reference to the case directory. In both cases, if the
path is found to be a directory, then the standard dictionary name is
appended to the path.

Resolves bug report http://bugs.openfoam.org/view.php?id=3692
This commit is contained in:
Will Bainbridge
2021-07-02 11:44:02 +01:00
parent 2fe27ab56e
commit c63c1a90c2
17 changed files with 113 additions and 233 deletions

View File

@ -10,9 +10,9 @@ application=$(getApplication)
runApplication blockMesh
runApplication transformPoints "scale=(1.6666 1 1)"
runApplication mirrorMesh -dict mirrorMeshDict.x -overwrite
runApplication mirrorMesh -dict system/mirrorMeshDict.x -overwrite
rm log.mirrorMesh
runApplication mirrorMesh -dict mirrorMeshDict.y -overwrite
runApplication mirrorMesh -dict system/mirrorMeshDict.y -overwrite
runApplication topoSet
runApplication createPatch -overwrite