mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
foamRunTutorials: Rationalized support for the "-test" option
RunFunctions: Added "isTest()" argument parsing function
tutorials: Updated Allrun scripts to propagate the "-test" option
tutorials: Removed the lower Alltest scripts and updated the Allrun to
use the "isTest()" function to handle test-specific operation
This commit is contained in:
@ -28,6 +28,17 @@
|
||||
# Miscellaneous functions for running tutorial cases
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
isTest()
|
||||
{
|
||||
for i in "$@"; do
|
||||
if [ "$i" = "-test" ]
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
getNumberOfProcessors()
|
||||
{
|
||||
expandDictionary system/decomposeParDict \
|
||||
|
||||
Reference in New Issue
Block a user