mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: test for WM_PROJECT_DIR being set/unset in scripts
This commit is contained in:
committed by
Andrew Heather
parent
e5916fd9ba
commit
ec7e3c88e4
@ -1,13 +1,10 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Get application name
|
||||
application=Test-hexRef8
|
||||
|
||||
# Compile
|
||||
runApplication wmake ..
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
Reference in New Issue
Block a user