tMakefile - cngf-pf-exp1 - experiments for first paper with continuum granular … | |
git clone git://src.adamsgaard.dk/manus_continuum_granular1_exp | |
Log | |
Files | |
Refs | |
Submodules | |
README | |
LICENSE | |
--- | |
tMakefile (1563B) | |
--- | |
1 FIG != basename $(PWD) | |
2 BIN = ../cngf-pf/max_depth_simple_shear | |
3 | |
4 default: ../$(FIG).pdf | |
5 | |
6 rate/sim.output00001.txt: ../fig-stick_slip_rate/sim.output00001.txt | |
7 mkdir -p rate | |
8 cp ../fig-stick_slip_rate/sim.output*.txt rate/ | |
9 | |
10 rate/timeseries.txt: ../fig-stick_slip_rate/timeseries.txt | |
11 mkdir -p rate | |
12 cp ../fig-stick_slip_rate/timeseries.txt rate/ | |
13 | |
14 rate/max_strainrate_depth.txt: ../fig-stick_slip_rate/max_strainrate_dep… | |
15 mkdir -p rate | |
16 cp ../fig-stick_slip_rate/max_strainrate_depth.txt rate/ | |
17 | |
18 stress/sim.output00001.txt: ../fig-stick_slip_stress/sim.output00001.txt | |
19 mkdir -p stress | |
20 cp ../fig-stick_slip_stress/{sim.output*,timeseries}.txt stress/ | |
21 | |
22 stress/timeseries.txt: ../fig-stick_slip_stress/timeseries.txt | |
23 mkdir -p stress | |
24 cp ../fig-stick_slip_stress/timeseries.txt stress/ | |
25 | |
26 stress/max_strainrate_depth.txt: ../fig-stick_slip_stress/max_strainrate… | |
27 mkdir -p stress | |
28 cp ../fig-stick_slip_stress/max_strainrate_depth.txt stress/ | |
29 | |
30 ../$(FIG).pdf: fig.gp \ | |
31 rate/sim.output00001.txt rate/timeseries.txt rate/max_strainrate… | |
32 stress/sim.output00001.txt stress/timeseries.txt stress/max_stra… | |
33 $(BIN) Makefile | |
34 sh -c '\ | |
35 out=$$($(BIN) \ | |
36 -k 2.1e-15 \ | |
37 -P 1e-8 \ | |
38 -O 100e3 \ | |
39 -a 80e3 \ | |
40 -q $$( echo "1.0/(3600*24)" | bc -l )\ | |
41 ); \ | |
42 max_def_depth=$$(echo $$out | cut -d" " -f1); \ | |
43 skin_depth=$$(echo $$out | cut -d" " -f2); \ | |
44 gnuplot -e "skin_depth=$$skin_depth; max_def_depth=$$max… | |
45 fig.gp > $@' | |
46 | |
47 clean: | |
48 rm -f rate/*.txt | |
49 rm -f stress/*.txt | |
50 rm -f ../$(FIG).pdf | |
51 | |
52 .PHONY: default clean |