Makefile (1878B)
1 BIN = ../cngf-pf/cngf-pf 2 FIG = fig-fit 3 4 #stressvals != range -n 20 1 100 5 stressvals != range -l -n 20 0 2 6 7 velvals = 3.169e-6 9.506e-6 8 9 default: \ 10 ../$(FIG)-strain_distribution.pdf \ 11 ../$(FIG)-mohr_coulomb.pdf \ 12 ../$(FIG)-sediment_flux.pdf 13 14 strain_distribution_N5kPa_v3.169e-6ms.txt: $(BIN) Makefile 15 sh -c '\ 16 for v in ${velvals}; do \ 17 for P in ${stressvals}; do \ 18 ./$(BIN) \ 19 -d 530.7e-6 \ 20 -m 0.6 \ 21 -c 0e3 \ 22 -s $${v} \ 23 -L 0.11 \ 24 -n $${P}e3 \ 25 -A 0.33 \ 26 -b 0.002 \ 27 > strain_distribution_N$${P}kPa_v$${v}ms.txt; \ 28 echo strain_distribution_N$${P}kPa_v$${v}ms.txt; \ 29 done; done' 30 # also close: lower A, higher b 31 32 mohr_coulomb_v3.169e-6ms.txt: strain_distribution_N5kPa_v3.169e-6ms.txt Makefile 33 sh -c '\ 34 rm -f mohr_coulomb_v*ms.txt; \ 35 for v in ${velvals}; do \ 36 for P in ${stressvals}; do \ 37 tail -n 1 strain_distribution_N$${P}kPa_v$${v}ms.txt >> mohr_coulomb_v$${v}ms.txt; \ 38 done; done' 39 40 sediment_flux_v3.169e-6ms.txt: strain_distribution_N5kPa_v3.169e-6ms.txt Makefile 41 sh -c '\ 42 rm -f sediment_flux_v*ms.txt; \ 43 for v in ${velvals}; do \ 44 for P in ${stressvals}; do \ 45 (printf "%ge3\t" $$P; ../cngf-pf/shear_flux < strain_distribution_N$${P}kPa_v$${v}ms.txt) >> sediment_flux_v$${v}ms.txt; \ 46 echo sediment_flux_v$${v}ms.txt; \ 47 done; done' 48 49 ../$(FIG)-strain_distribution.pdf: fig-strain_distribution.gp strain_distribution_N5kPa_v3.169e-6ms.txt 50 gnuplot fig-strain_distribution.gp > $@ 51 52 ../$(FIG)-mohr_coulomb.pdf: fig-mohr_coulomb.gp mohr_coulomb_v3.169e-6ms.txt 53 gnuplot fig-mohr_coulomb.gp > $@ 54 55 ../$(FIG)-sediment_flux.pdf: fig-sediment_flux.gp sediment_flux_v3.169e-6ms.txt 56 gnuplot fig-sediment_flux.gp > $@ 57 58 clean: 59 rm -f strain_distribution_*.txt mohr_coulomb_*.txt sediment_flux_*.txt 60 rm -f ../$(FIG)-strain_distribution.pdf 61 rm -f ../$(FIG)-mohr_coulomb.pdf 62 rm -f ../$(FIG)-sediment_flux.pdf 63 64 .PHONY: default clean