ENH: openfoam shell session - improved and relocated
- '-c' option (as per shell), '-Dkey[=value]' option to provide preferences via the command-line. For example, etc/openfoam -DWM_COMPILER=Clang -int64 ./Allwmake -j -s -l These can also be combined with other options. Eg, etc/openfoam -DWM_COMPILER=Clang \ -c 'wmake -show-path-cxx -show-cxxflags' - relocated from bin/tools/ => etc/ for easier access - bin/tools/openfoam.in : for autoconfig-style installation - Auto-detect if the shell script was executed with openfoam and interpret accordingly. Simple example, -------------- #!/usr/bin/openfoam cd "${0%/*}" || exit # Run -*-sh-*- from this dir blockMesh simpleFoam -------------- Note it is NOT currently possible to provide any other parameters this way. Eg, `#!/usr/bin/openfoam -sp` (NOT) This will either fail to run, or result in infinite recursion.
Showing
- bin/tools/openfoam.in 26 additions, 0 deletionsbin/tools/openfoam.in
- bin/tools/source-bashrc 12 additions, 10 deletionsbin/tools/source-bashrc
- doc/openfoam.1.in 70 additions, 0 deletionsdoc/openfoam.1.in
- etc/bashrc 9 additions, 5 deletionsetc/bashrc
- etc/config.sh/setup 2 additions, 2 deletionsetc/config.sh/setup
- etc/cshrc 9 additions, 5 deletionsetc/cshrc
- etc/openfoam 272 additions, 0 deletionsetc/openfoam
Please register or sign in to comment