Add support for automatically reading "fileName.orig" files if the corresponding "fileName" is absent
Currently, .orig files are used to back files up before performing initialization with utilities such as setFields. However, the .orig files either
- Need to be rename with rm or a script
- The utility foamRestoreFiles -method orig -withZero must be executed, which renames the .orig files on the 0 directory instead of renaming a copy of the same files, effectively destroying the .orig file
The .org version has implemented a feature to read the .orig files automatically if the corresponding "non .orig" file is missing: https://github.com/OpenFOAM/OpenFOAM-dev/commit/df6e2da2dd89227cee05c0bc0c1bf4f9b80849d5 This feature would make the process of preserving .orig files a lot simpler and transparent to the user.