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