mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
fix up Allclean.sh scripts [ci skip]
note that #!/bin/sh may invoke a different shell than #!/bin/bash
This commit is contained in:
@ -1,21 +1,15 @@
|
||||
#!/bin/sh
|
||||
#cd ${0%/*} || exit 1 # run from this directory
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
source $CFDEM_PROJECT_DIR/etc/functions.sh
|
||||
|
||||
#- define variables
|
||||
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
|
||||
cd $casePath/CFD
|
||||
cd CFD
|
||||
cleanCase
|
||||
rm $casePath/log*
|
||||
cd -
|
||||
|
||||
rm $casePath/DEM/post/liggghts_run*
|
||||
rm $casePath/DEM/post/dump.liggghts_run
|
||||
#mkdir $casePath/DEM/post
|
||||
#mkdir $casePath/DEM/post/restart
|
||||
#cd $casePath/DEM/post/restart
|
||||
#touch liggghts.restart
|
||||
rm -f log*
|
||||
|
||||
rm ./DEM/post/dump*
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,35 +1,18 @@
|
||||
#!/bin/sh
|
||||
#cd ${0%/*} || exit 1 # run from this directory
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
source $CFDEM_PROJECT_DIR/etc/functions.sh
|
||||
|
||||
#- define variables
|
||||
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
|
||||
cd $casePath/CFD
|
||||
cd CFD
|
||||
cleanCase
|
||||
# rm $casePath/CFD/rmass*.dat
|
||||
#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
|
||||
cd -
|
||||
|
||||
rm -R $casePath/DEM/post
|
||||
mkdir $casePath/DEM/post
|
||||
mkdir $casePath/DEM/post/restart
|
||||
#cd $casePath/DEM/post/restart
|
||||
#touch liggghts.restart
|
||||
rm -f log*
|
||||
|
||||
## if postproc is activated (in fix_chem_shrink)
|
||||
#rm $casePath/changeOfCO2
|
||||
#rm $casePath/changeOfO2
|
||||
#rm $casePath/rhogas_
|
||||
#rm $casePath/pmass_
|
||||
rm -r ./DEM/post
|
||||
mkdir ./DEM/post
|
||||
mkdir ./DEM/post/restart
|
||||
touch ./DEM/post/restart/.gitignore
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,35 +1,18 @@
|
||||
#!/bin/sh
|
||||
#cd ${0%/*} || exit 1 # run from this directory
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
source $CFDEM_PROJECT_DIR/etc/functions.sh
|
||||
|
||||
#- define variables
|
||||
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
|
||||
cd $casePath/CFD
|
||||
cd CFD
|
||||
cleanCase
|
||||
# rm $casePath/CFD/rmass*.dat
|
||||
#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
|
||||
cd -
|
||||
|
||||
rm -R $casePath/DEM/post
|
||||
mkdir $casePath/DEM/post
|
||||
mkdir $casePath/DEM/post/restart
|
||||
#cd $casePath/DEM/post/restart
|
||||
#touch liggghts.restart
|
||||
rm -f log*
|
||||
|
||||
## if postproc is activated (in fix_chem_shrink)
|
||||
#rm $casePath/changeOfCO2
|
||||
#rm $casePath/changeOfO2
|
||||
#rm $casePath/rhogas_
|
||||
#rm $casePath/pmass_
|
||||
rm -r ./DEM/post
|
||||
mkdir ./DEM/post
|
||||
mkdir ./DEM/post/restart
|
||||
touch ./DEM/post/restart/.gitignore
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,35 +1,18 @@
|
||||
#!/bin/sh
|
||||
#cd ${0%/*} || exit 1 # run from this directory
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
source $CFDEM_PROJECT_DIR/etc/functions.sh
|
||||
|
||||
#- define variables
|
||||
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
|
||||
cd $casePath/CFD
|
||||
cd CFD
|
||||
cleanCase
|
||||
# rm $casePath/CFD/rmass*.dat
|
||||
#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
|
||||
cd -
|
||||
|
||||
rm -R $casePath/DEM/post
|
||||
mkdir $casePath/DEM/post
|
||||
mkdir $casePath/DEM/post/restart
|
||||
#cd $casePath/DEM/post/restart
|
||||
#touch liggghts.restart
|
||||
rm -f log*
|
||||
|
||||
## if postproc is activated (in fix_chem_shrink)
|
||||
#rm $casePath/changeOfCO2
|
||||
#rm $casePath/changeOfO2
|
||||
#rm $casePath/rhogas_
|
||||
#rm $casePath/pmass_
|
||||
rm -r ./DEM/post
|
||||
mkdir ./DEM/post
|
||||
mkdir ./DEM/post/restart
|
||||
touch ./DEM/post/restart/.gitignore
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,35 +1,18 @@
|
||||
#!/bin/sh
|
||||
#cd ${0%/*} || exit 1 # run from this directory
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
source $CFDEM_PROJECT_DIR/etc/functions.sh
|
||||
|
||||
#- define variables
|
||||
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
|
||||
cd $casePath/CFD
|
||||
cd CFD
|
||||
cleanCase
|
||||
# rm $casePath/CFD/rmass*.dat
|
||||
#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
|
||||
cd -
|
||||
|
||||
rm -R $casePath/DEM/post
|
||||
mkdir $casePath/DEM/post
|
||||
mkdir $casePath/DEM/post/restart
|
||||
#cd $casePath/DEM/post/restart
|
||||
#touch liggghts.restart
|
||||
rm -f log*
|
||||
|
||||
## if postproc is activated (in fix_chem_shrink)
|
||||
#rm $casePath/changeOfCO2
|
||||
#rm $casePath/changeOfO2
|
||||
#rm $casePath/rhogas_
|
||||
#rm $casePath/pmass_
|
||||
rm -r ./DEM/post
|
||||
mkdir ./DEM/post
|
||||
mkdir ./DEM/post/restart
|
||||
touch ./DEM/post/restart/.gitignore
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
Reference in New Issue
Block a user