tUse POSIX shell for loops - cngf-pf - continuum model for granular flows with … | |
git clone git://src.adamsgaard.dk/cngf-pf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 07ae0f8659bb011dd2a4eb3c875555f1e3bc12a7 | |
parent 358d1ed5a5fdbbe0620c4b0d27448132e9870f82 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 28 Jun 2019 10:54:09 +0200 | |
Use POSIX shell for loops | |
Diffstat: | |
M Makefile | 18 +++++++++--------- | |
1 file changed, 9 insertions(+), 9 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
t@@ -33,17 +33,17 @@ diurnal.mp4: diurnal.output00000.txt.png | |
ffmpeg -i diurnal.output%05d.txt.png -y diurnal.mp4 | |
diurnal.output00000.txt.png: 1d_fd_simple_shear_fluid.gp diurnal.output00000.t… | |
- /bin/bash -c '\ | |
+ /bin/sh -c '\ | |
for f in diurnal.output*.txt; do \ | |
gnuplot -e "filename=\"$$f\"; p_min=\"0\"; p_max=\"100e3\"" $<… | |
done' | |
diurnal.output00000.txt: 1d_fd_simple_shear | |
- /usr/bin/env zsh -c '\ | |
- ./$< --resolution 50 --length 2.0 --normal-stress 150e3 --fluid --flui… | |
+ /bin/sh -c '\ | |
+ ./$< --resolution 50 --length 2.0 --normal-stress 150e3 --fluid --flui… | |
diurnal.timeseries.txt: diurnal.output00000.txt | |
- /bin/bash -c '\ | |
+ /bin/sh -c '\ | |
for f in diurnal.output*.txt; do \ | |
tail -n 1 "$$f" | cut -f2- >> $@; \ | |
done' | |
t@@ -59,14 +59,14 @@ diurnal.gif: diurnal.mp4 | |
$(CC) $(LDFLAGS) $(OBJ) -o $@ | |
1d_fd_simple_shear.png: 1d_fd_simple_shear 1d_fd_simple_shear.gp | |
- /bin/bash -c '\ | |
+ /bin/sh -c '\ | |
for P in 10 20 40 60 80 120; do \ | |
./$< -o 0.03 -L 0.64 -P $${P}e3 -N > $<_P$${P}kPa.txt; \ | |
done' | |
gnuplot $<.gp > $@ | |
1d_fd_simple_shear_rheology.png: 1d_fd_simple_shear 1d_fd_simple_shear_rheolog… | |
- /bin/bash -c '\ | |
+ /bin/sh -c '\ | |
for b in $$(printf "0.01\n0.10\n"; seq 0.20 0.20 1.00); do \ | |
out="$<_rheology_b$${b}.txt"; \ | |
rm -f "$$out"; \ | |
t@@ -79,7 +79,7 @@ diurnal.gif: diurnal.mp4 | |
# 1 bar is equal to 100 kPa | |
1d_fd_simple_shear_rheology_kamb.png: 1d_fd_simple_shear 1d_fd_simple_shear_rh… | |
- /bin/bash -c '\ | |
+ /bin/sh -c '\ | |
for b in 0.01 0.10 0.20 0.40 0.94; do \ | |
out="$<_rheology_b$${b}_kamb.txt"; \ | |
rm -f "$$out"; \ | |
t@@ -93,7 +93,7 @@ diurnal.gif: diurnal.mp4 | |
# shear-strain rate from 10^1 to 10^6 m/a | |
# friction around 0.55 | |
1d_fd_simple_shear_rheology_iverson.png: 1d_fd_simple_shear 1d_fd_simple_shear… | |
- /bin/bash -c '\ | |
+ /bin/sh -c '\ | |
for b in $$(printf "0.01\n0.10\n"; seq 0.20 0.20 0.90) 0.94; do \ | |
out="$<_rheology_b$${b}_iverson.txt"; \ | |
rm -f "$$out"; \ | |
t@@ -106,7 +106,7 @@ diurnal.gif: diurnal.mp4 | |
# shear velocity rate from 0.1 m/h to 100 m/h | |
1d_fd_simple_shear_rheology_tulaczyk.png: 1d_fd_simple_shear 1d_fd_simple_shea… | |
- /bin/bash -c '\ | |
+ /bin/sh -c '\ | |
for b in $$(printf "0.01\n0.10\n"; seq 0.20 0.20 1.00) 0.94; do \ | |
out="$<_rheology_b$${b}_tulaczyk.txt"; \ | |
rm -f "$$out"; \ |