STYLE: remove unnecessary stdout, stderr /dev/null redirects

- no stderr redirect needed:
    * 'command -v'

- no stdout/stderr redirect needed:
    * 'rm -f'

STYLE: consistent spacing after redirects
This commit is contained in:
Mark Olesen
2019-11-06 10:44:36 +01:00
committed by Andrew Heather
parent ec7e3c88e4
commit e6dfb39c66
131 changed files with 281 additions and 282 deletions

View File

@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
rm -rf 0/polyMesh > /dev/null 2>&1
rm system/topoSetDict > /dev/null 2>&1
rm -rf 0/polyMesh
rm -f system/topoSetDict
#------------------------------------------------------------------------------

View File

@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase0
rm system/topoSetDict > /dev/null 2>&1
rm -rf processor[0-9] > /dev/null 2>&1
rm -f system/topoSetDict
rm -rf processor[0-9]
#------------------------------------------------------------------------------

View File

@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
rm -rf 0/polyMesh > /dev/null 2>&1
rm system/topoSetDict > /dev/null 2>&1
rm -rf 0/polyMesh
rm -f system/topoSetDict
#------------------------------------------------------------------------------

View File

@ -3,6 +3,6 @@ cd ${0%/*} || exit 1 # Run from this directory
# Clean time directories only
rm -rf *[1-9]*
rm -f log.* 2>/dev/null
rm -f log.*
#------------------------------------------------------------------------------

View File

@ -4,6 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
#------------------------------------------------------------------------------
cleanCase
rm system/topoSetDict > /dev/null 2>&1
rm -f system/topoSetDict
#------------------------------------------------------------------------------

View File

@ -5,11 +5,11 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase0
rm system/topoSetDict > /dev/null 2>&1
rm -f system/topoSetDict
# Remove surfaces and features
rm -f constant/triSurface/DTC-scaled.stl.gz > /dev/null 2>&1
rm -f constant/triSurface/DTC-scaled.eMesh > /dev/null 2>&1
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -f constant/triSurface/DTC-scaled.stl.gz
rm -f constant/triSurface/DTC-scaled.eMesh
rm -rf constant/extendedFeatureEdgeMesh
#------------------------------------------------------------------------------

View File

@ -5,11 +5,11 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase0
rm system/topoSetDict > /dev/null 2>&1
rm -f system/topoSetDict
# Remove surface and features
rm -f constant/triSurface/DTC-scaled.stl.gz > /dev/null 2>&1
rm -f constant/triSurface/DTC-scaled.eMesh > /dev/null 2>&1
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -f constant/triSurface/DTC-scaled.stl.gz
rm -f constant/triSurface/DTC-scaled.eMesh
rm -rf constant/extendedFeatureEdgeMesh
#------------------------------------------------------------------------------

View File

@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase0
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
rm -rf constant/extendedFeatureEdgeMesh
rm -f constant/triSurface/*.eMesh*
#------------------------------------------------------------------------------

View File

@ -3,7 +3,7 @@ cd ${0%/*} || exit 1 # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
\rm -rf 0
rm -rf 0
# Meshing
runApplication blockMesh

View File

@ -6,9 +6,9 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase0
# Remove surface and features
\rm -f constant/triSurface/motorBike.obj.gz > /dev/null 2>&1
\rm -f constant/triSurface/motorBike.eMesh > /dev/null 2>&1
\rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -f constant/triSurface/motorBike.obj.gz
rm -f constant/triSurface/motorBike.eMesh
rm -rf constant/extendedFeatureEdgeMesh
\cp system/controlDict_run system/controlDict

View File

@ -13,7 +13,7 @@ runApplication blockMesh
# Serial
# ------
#runApplication snappyHexMesh -overwrite
#\rm -f constant/polyMesh/refinementHistory*
#rm -f constant/polyMesh/refinementHistory*
# - set the initial fields
# restore0Dir
#runApplication setFields

View File

@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
rm 0/alpha.water.gz 0/alpha.water 2>/dev/null
rm -f 0/alpha.water.gz 0/alpha.water
rm -rf *Flux
#------------------------------------------------------------------------------

View File

@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase0
rm system/cellSetDict > /dev/null 2>&1
rm -f system/cellSetDict
#------------------------------------------------------------------------------

View File

@ -4,6 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
#------------------------------------------------------------------------------
cleanCase0
\rm -rf isoFaces
rm -rf isoFaces
#------------------------------------------------------------------------------

View File

@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase0
rm system/cellSetDict > /dev/null 2>&1
rm -f system/cellSetDict
#------------------------------------------------------------------------------

View File

@ -6,8 +6,8 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase0
# Remove surface
rm -f constant/triSurface/propellerTip.obj.gz > /dev/null 2>&1
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -f constant/triSurface/propellerTip.obj.gz
rm -f constant/triSurface/*.eMesh*
rm -rf constant/extendedFeatureEdgeMesh
#------------------------------------------------------------------------------