mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: provide isParallel test in RunFunctions
- allows writing Allrun scripts that can be easily tested in serial or parallel
This commit is contained in:
@ -28,6 +28,18 @@
|
||||
# Miscellaneous functions for running tutorial cases
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# Look for '-parallel' in the argument list.
|
||||
#
|
||||
isParallel()
|
||||
{
|
||||
for i; do [ "$i" = "-parallel" ] && return 0; done
|
||||
return 1
|
||||
}
|
||||
|
||||
#
|
||||
# Look for '-test' in the argument list.
|
||||
#
|
||||
isTest()
|
||||
{
|
||||
for i in "$@"; do
|
||||
|
||||
Reference in New Issue
Block a user