fix up Allclean.sh scripts [ci skip]

note that #!/bin/sh may invoke a different shell than #!/bin/bash
This commit is contained in:
Daniel Queteschiner
2019-09-19 16:40:07 +02:00
parent e452aa7929
commit 4ac94e82c7
5 changed files with 38 additions and 112 deletions

View File

@ -1,21 +1,15 @@
#!/bin/sh #!/bin/sh
#cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions
source $CFDEM_PROJECT_DIR/etc/functions.sh
#- define variables cd CFD
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
cd $casePath/CFD
cleanCase cleanCase
rm $casePath/log* cd -
rm $casePath/DEM/post/liggghts_run* rm -f log*
rm $casePath/DEM/post/dump.liggghts_run
#mkdir $casePath/DEM/post rm ./DEM/post/dump*
#mkdir $casePath/DEM/post/restart
#cd $casePath/DEM/post/restart
#touch liggghts.restart
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -1,35 +1,18 @@
#!/bin/sh #!/bin/sh
#cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions
source $CFDEM_PROJECT_DIR/etc/functions.sh
#- define variables cd CFD
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
cd $casePath/CFD
cleanCase cleanCase
# rm $casePath/CFD/rmass*.dat cd -
#rm $casePath/CFD/*.dat
#rm $casePath/CFD/*.txt
rm $casePath/log*
#rm $casePath/run_error.log
#cp -R 0/Org/p 0/p
#cp -R 0/Org/U 0/U
#cp -R 0/Org/Us 0/Us
#cp -R 0/Org/phiIB 0/phiIB
#cp -R 0/Org/voidfraction 0/voidfraction
rm -R $casePath/DEM/post rm -f log*
mkdir $casePath/DEM/post
mkdir $casePath/DEM/post/restart
#cd $casePath/DEM/post/restart
#touch liggghts.restart
## if postproc is activated (in fix_chem_shrink) rm -r ./DEM/post
#rm $casePath/changeOfCO2 mkdir ./DEM/post
#rm $casePath/changeOfO2 mkdir ./DEM/post/restart
#rm $casePath/rhogas_ touch ./DEM/post/restart/.gitignore
#rm $casePath/pmass_
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -1,35 +1,18 @@
#!/bin/sh #!/bin/sh
#cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions
source $CFDEM_PROJECT_DIR/etc/functions.sh
#- define variables cd CFD
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
cd $casePath/CFD
cleanCase cleanCase
# rm $casePath/CFD/rmass*.dat cd -
#rm $casePath/CFD/*.dat
#rm $casePath/CFD/*.txt
rm $casePath/log*
#rm $casePath/run_error.log
#cp -R 0/Org/p 0/p
#cp -R 0/Org/U 0/U
#cp -R 0/Org/Us 0/Us
#cp -R 0/Org/phiIB 0/phiIB
#cp -R 0/Org/voidfraction 0/voidfraction
rm -R $casePath/DEM/post rm -f log*
mkdir $casePath/DEM/post
mkdir $casePath/DEM/post/restart
#cd $casePath/DEM/post/restart
#touch liggghts.restart
## if postproc is activated (in fix_chem_shrink) rm -r ./DEM/post
#rm $casePath/changeOfCO2 mkdir ./DEM/post
#rm $casePath/changeOfO2 mkdir ./DEM/post/restart
#rm $casePath/rhogas_ touch ./DEM/post/restart/.gitignore
#rm $casePath/pmass_
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -1,35 +1,18 @@
#!/bin/sh #!/bin/sh
#cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions
source $CFDEM_PROJECT_DIR/etc/functions.sh
#- define variables cd CFD
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
cd $casePath/CFD
cleanCase cleanCase
# rm $casePath/CFD/rmass*.dat cd -
#rm $casePath/CFD/*.dat
#rm $casePath/CFD/*.txt
rm $casePath/log*
#rm $casePath/run_error.log
#cp -R 0/Org/p 0/p
#cp -R 0/Org/U 0/U
#cp -R 0/Org/Us 0/Us
#cp -R 0/Org/phiIB 0/phiIB
#cp -R 0/Org/voidfraction 0/voidfraction
rm -R $casePath/DEM/post rm -f log*
mkdir $casePath/DEM/post
mkdir $casePath/DEM/post/restart
#cd $casePath/DEM/post/restart
#touch liggghts.restart
## if postproc is activated (in fix_chem_shrink) rm -r ./DEM/post
#rm $casePath/changeOfCO2 mkdir ./DEM/post
#rm $casePath/changeOfO2 mkdir ./DEM/post/restart
#rm $casePath/rhogas_ touch ./DEM/post/restart/.gitignore
#rm $casePath/pmass_
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -1,35 +1,18 @@
#!/bin/sh #!/bin/sh
#cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions
source $CFDEM_PROJECT_DIR/etc/functions.sh
#- define variables cd CFD
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
cd $casePath/CFD
cleanCase cleanCase
# rm $casePath/CFD/rmass*.dat cd -
#rm $casePath/CFD/*.dat
#rm $casePath/CFD/*.txt
rm $casePath/log*
#rm $casePath/run_error.log
#cp -R 0/Org/p 0/p
#cp -R 0/Org/U 0/U
#cp -R 0/Org/Us 0/Us
#cp -R 0/Org/phiIB 0/phiIB
#cp -R 0/Org/voidfraction 0/voidfraction
rm -R $casePath/DEM/post rm -f log*
mkdir $casePath/DEM/post
mkdir $casePath/DEM/post/restart
#cd $casePath/DEM/post/restart
#touch liggghts.restart
## if postproc is activated (in fix_chem_shrink) rm -r ./DEM/post
#rm $casePath/changeOfCO2 mkdir ./DEM/post
#rm $casePath/changeOfO2 mkdir ./DEM/post/restart
#rm $casePath/rhogas_ touch ./DEM/post/restart/.gitignore
#rm $casePath/pmass_
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file