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
|
#!/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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user