Makefile (4333B)
1 JULIA=julia --procs 1 --optimize=3 --math-mode=fast --color=yes 2 #JULIA=julia --procs 1 --color=yes 3 PREFIX=fracture_toughness 4 SCRIPTINIT=../simulation_init.jl 5 SCRIPTCONS=../simulation_cons.jl 6 SCRIPTSHEAR=../simulation_shear.jl 7 8 .PHONY: default 9 default: \ 10 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K128500.0-time_vs_shear-stress.pdf \ 11 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K257000.0-time_vs_shear-stress.pdf \ 12 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K1.285e6-time_vs_shear-stress.pdf \ 13 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K2.57e6-time_vs_shear-stress.pdf \ 14 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K1.285e7-time_vs_shear-stress.pdf \ 15 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K2.57e7-time_vs_shear-stress.pdf 16 17 # default: \ 18 # $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K1.285e7-time_vs_shear-stress.pdf \ 19 # $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K2.57e7-time_vs_shear-stress.pdf 20 # default: \ 21 # $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K257000.0-time_vs_shear-stress.pdf 22 23 .PHONY: benchmark 24 benchmark: ../simulation_benchmark.jl 25 $(JULIA) $< 26 27 ### FRICTIONAL RUNS ############################################################ 28 29 # initialization step 30 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-init-grain-size-distribution.png: $(SCRIPTINIT) 31 $(JULIA) $< \ 32 --mu_d=0.5 \ 33 --tensile_strength=0000e3 \ 34 --seed=1 \ 35 "$(PREFIX)_mu0.5_sigma_c0kPa.pdf" 36 37 # consolidation step 38 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-cons-N20000.0Pa-time_vs_compaction-stress.pdf: $(SCRIPTCONS) $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-init-grain-size-distribution.png 39 $(JULIA) $< \ 40 --mu_d=0.5 \ 41 --tensile_strength=0000e3 \ 42 --seed=1 \ 43 "$(PREFIX)_mu0.5_sigma_c0kPa.pdf" 44 45 # shear step 46 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K128500.0-time_vs_shear-stress.pdf: $(SCRIPTSHEAR) $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-cons-N20000.0Pa-time_vs_compaction-stress.pdf 47 $(JULIA) $< \ 48 --mu_d=0.5 \ 49 --tensile_strength=0000e3 \ 50 --fracture_toughness=1285e2 \ 51 --seed=1 \ 52 "$(PREFIX)_mu0.5_sigma_c0kPa.pdf" 53 54 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K257000.0-time_vs_shear-stress.pdf: $(SCRIPTSHEAR) $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-cons-N20000.0Pa-time_vs_compaction-stress.pdf 55 $(JULIA) $< \ 56 --mu_d=0.5 \ 57 --tensile_strength=0000e3 \ 58 --fracture_toughness=2570e2 \ 59 --seed=1 \ 60 "$(PREFIX)_mu0.5_sigma_c0kPa.pdf" 61 62 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K1.285e6-time_vs_shear-stress.pdf: $(SCRIPTSHEAR) $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-cons-N20000.0Pa-time_vs_compaction-stress.pdf 63 $(JULIA) $< \ 64 --mu_d=0.5 \ 65 --tensile_strength=0000e3 \ 66 --fracture_toughness=1285e3 \ 67 --seed=1 \ 68 "$(PREFIX)_mu0.5_sigma_c0kPa.pdf" 69 70 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K2.57e6-time_vs_shear-stress.pdf: $(SCRIPTSHEAR) $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-cons-N20000.0Pa-time_vs_compaction-stress.pdf 71 $(JULIA) $< \ 72 --mu_d=0.5 \ 73 --tensile_strength=0000e3 \ 74 --fracture_toughness=2570e3 \ 75 --seed=1 \ 76 "$(PREFIX)_mu0.5_sigma_c0kPa.pdf" 77 78 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K1.285e7-time_vs_shear-stress.pdf: $(SCRIPTSHEAR) $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-cons-N20000.0Pa-time_vs_compaction-stress.pdf 79 $(JULIA) $< \ 80 --mu_d=0.5 \ 81 --tensile_strength=0000e3 \ 82 --fracture_toughness=1285e4 \ 83 --seed=1 \ 84 "$(PREFIX)_mu0.5_sigma_c0kPa.pdf" 85 86 $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-shear-N20000.0Pa-vel_shear1.0m-s-K2.57e7-time_vs_shear-stress.pdf: $(SCRIPTSHEAR) $(PREFIX)_mu0.5_sigma_c0kPa.pdf-seed1-cons-N20000.0Pa-time_vs_compaction-stress.pdf 87 $(JULIA) $< \ 88 --mu_d=0.5 \ 89 --tensile_strength=0000e3 \ 90 --fracture_toughness=2570e4 \ 91 --seed=1 \ 92 "$(PREFIX)_mu0.5_sigma_c0kPa.pdf" 93 94 95 .PHONY: clean 96 clean: 97 $(RM) $(PREFIX)_*.run 98 $(RM) -rf $(PREFIX)_*pdf*/ 99 $(RM) -rf test*pdf*/ 100 for f in $(PREFIX)_*.vts; do $(RM) $$f; done 101 for f in $(PREFIX)_*.vtp; do $(RM) $$f; done 102 for f in $(PREFIX)_*.vtu; do $(RM) $$f; done 103 $(RM) $(PREFIX)_*.pdf 104 $(RM) $(PREFIX)_*.txt 105 $(RM) test*.pdf 106 $(RM) test*.txt