mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: test mode not respected (closes #710)
- now replaced 'if ! isTest' with 'if notTest' for most cases.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user