TUT: test mode not respected (closes #710)

- now replaced 'if ! isTest' with 'if notTest' for most cases.
This commit is contained in:
Mark Olesen
2018-02-20 12:54:44 +01:00
parent 63edb6024b
commit fe140cd6c5
24 changed files with 36 additions and 27 deletions

View File

@ -3,7 +3,7 @@
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
# \\/ M anipulation | Copyright (C) 2015-2017 OpenCFD Ltd.
# \\/ M anipulation | Copyright (C) 2015-2018 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
@ -24,7 +24,7 @@
#------------------------------------------------------------------------------
#
# Look for '-parallel' in the argument list.
# Check presence of '-parallel' in the argument list.
#
isParallel()
{
@ -34,7 +34,7 @@ isParallel()
#
# Look for '-test' in the argument list.
# Check presence of '-test' in the argument list.
#
isTest()
{
@ -42,6 +42,15 @@ isTest()
return 1
}
#
# Check absence of '-test' in the argument list.
#
notTest()
{
for i; do [ "$i" = "-test" ] && return 1; done
return 0
}
#
# Extract 'numberOfSubdomains' from system/decomposeParDict