mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
committed by
Andrew Heather
parent
ec7e3c88e4
commit
e6dfb39c66
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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]
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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.*
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,6 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cleanCase
|
||||
rm system/topoSetDict > /dev/null 2>&1
|
||||
|
||||
rm -f system/topoSetDict
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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*
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm system/cellSetDict > /dev/null 2>&1
|
||||
rm -f system/cellSetDict
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,6 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cleanCase0
|
||||
\rm -rf isoFaces
|
||||
rm -rf isoFaces
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm system/cellSetDict > /dev/null 2>&1
|
||||
rm -f system/cellSetDict
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user