tMakefile - cngf-pf - continuum model for granular flows with pore-pressure dynamics (renamed from 1d_fd_simple_shear) (HTM) git clone git://src.adamsgaard.dk/cngf-pf (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- tMakefile (5224B) --- 1 BIN = ../cngf-pf 2 BIN2 = ../max_depth_simple_shear 3 BIN3 = ../shear_flux 4 5 TESTS = cngf_pf_dry \ 6 cngf_pf_dry_norm \ 7 cngf_pf_dry_cohesive \ 8 cngf_pf_dry_vconst \ 9 cngf_pf_wet \ 10 cngf_pf_wet_norm \ 11 cngf_pf_wet_vari \ 12 cngf_pf_wet_vari_diff \ 13 cngf_pf_wet_vari_pulse \ 14 cngf_pf_wet_vari_pulse_vlim \ 15 cngf_pf_dry_trans \ 16 cngf_pf_dry_trans_undercons \ 17 cngf_pf_dry_trans_overcons \ 18 max_depth_misc \ 19 shear_flux_dry \ 20 shear_flux_wet 21 22 STANDARDS := $(TESTS:=.std) 23 24 CNGF_PF_DRY_OPTS = -o 0.03 -L 0.64 -n 40e3 25 CNGF_PF_DRY_NORM_OPTS = -o 0.03 -L 0.64 -n 40e3 -N 26 CNGF_PF_DRY_COHESIVE_OPTS = -o 0.03 -L 0.64 -n 40e3 -c 1e3 27 CNGF_PF_DRY_VCONST_OPTS = -s 1e-3 28 CNGF_PF_WET_OPTS = -o 0.03 -L 0.64 -n 40e3 -F 29 CNGF_PF_WET_NORM_OPTS = -o 0.03 -L 0.64 -n 40e3 -F -N 30 CNGF_PF_WET_VARI_OPTS = -L 8.0 \ 31 -n 150e3 \ 32 -F -k 2e-17 \ 33 -O 50e3 \ 34 -a 50e3 \ 35 -q $$( echo "1.0/(3600*24)" | bc -l ) \ 36 -I $$( echo "60*1000" | bc -l ) \ 37 -e $$( echo "60*20" | bc -l ) 38 CNGF_PF_WET_VARI_DIFF_OPTS =-L 8.0 \ 39 -n 150e3 \ 40 -F -D $$(awk 'BEGIN{print 2e-17/(1.787e-3*(1e-8 + 0.25*3.9e-10))}') \ 41 -O 50e3 \ 42 -a 50e3 \ 43 -q $$( echo "1.0/(3600*24)" | bc -l ) \ 44 -I $$( echo "60*1000" | bc -l ) \ 45 -e $$( echo "60*20" | bc -l ) 46 CNGF_PF_WET_VARI_PULSE_OPTS = $(CNGF_PF_WET_VARI_OPTS) \ 47 -u 500 48 CNGF_PF_WET_VARI_PULSE_VLIM_OPTS = $(CNGF_PF_WET_VARI_OPTS) \ 49 -u 500 -l 1e-3 50 CNGF_PF_DRY_TRANS_OPTS = -T -e 5.0 51 CNGF_PF_DRY_TRANS_UNDERCONS_OPTS = -T -e 100.0 -I 1.0 -s 0.01 -p 0.25 trans_undercons >/dev/null && \ 52 for f in trans_undercons.output*.txt; do tail -n 1 "$$f"; done 53 CNGF_PF_DRY_TRANS_OVERCONS_OPTS = -T -e 100.0 -I 1.0 -s 0.01 -p 0.15 trans_overcons >/dev/null && \ 54 for f in trans_overcons.output*.txt; do tail -n 1 "$$f"; done 55 56 MAX_DEPTH_MISC = sh -c 'for A_f in 1e3 5e3 10e3 50e3 100e3; \ 57 do ./$(BIN2) -O 101e3 -a $$A_f -q 0.01;\ 58 ./$(BIN2) -O 101e3 -a $$A_f -q 0.001;\ 59 ./$(BIN2) -O 101e3 -a $$A_f -q 0.0001; done' 60 61 test: $(TESTS) 62 63 standards: $(STANDARDS) 64 65 cngf_pf_dry: $(BIN) 66 ./$(BIN) $(CNGF_PF_DRY_OPTS) | diff $@.std - 67 68 cngf_pf_dry_norm: $(BIN) 69 ./$(BIN) $(CNGF_PF_DRY_NORM_OPTS) | diff $@.std - 70 71 cngf_pf_dry_cohesive: $(BIN) 72 ./$(BIN) $(CNGF_PF_DRY_COHESIVE_OPTS) | diff $@.std - 73 74 cngf_pf_dry_vconst: $(BIN) 75 ./$(BIN) $(CNGF_PF_DRY_VCONST_OPTS) | diff $@.std - 76 77 cngf_pf_wet: $(BIN) 78 ./$(BIN) $(CNGF_PF_WET_OPTS) | diff $@.std - 79 80 cngf_pf_wet_norm: $(BIN) 81 ./$(BIN) $(CNGF_PF_WET_NORM_OPTS) | diff $@.std - 82 83 cngf_pf_wet_vari: $(BIN) 84 ./$(BIN) $(CNGF_PF_WET_VARI_OPTS) | diff $@.std - 85 86 cngf_pf_wet_vari_diff: $(BIN) 87 ./$(BIN) $(CNGF_PF_WET_VARI_DIFF_OPTS) | diff $@.std - 88 89 cngf_pf_wet_vari_pulse: $(BIN) 90 ./$(BIN) $(CNGF_PF_WET_VARI_PULSE_OPTS) | diff $@.std - 91 92 cngf_pf_wet_vari_pulse_vlim: $(BIN) 93 ./$(BIN) $(CNGF_PF_WET_VARI_PULSE_VLIM_OPTS) | diff $@.std - 94 95 cngf_pf_dry_transient: $(BIN) 96 ./$(BIN) $(CNGF_PF_DRY_TRANS_OPTS) | diff $@.std - 97 98 cngf_pf_dry_trans_undercons: $(BIN) 99 ./$(BIN) $(CNGF_PF_DRY_TRANS_UNDERCONS_OPTS) | diff $@.std - 100 101 cngf_pf_dry_trans_overcons: $(BIN) 102 ./$(BIN) $(CNGF_PF_DRY_TRANS_OVERCONS_OPTS) | diff $@.std - 103 104 max_depth_misc: $(BIN2) 105 $(MAX_DEPTH_MISC) | diff $@.std - 106 107 shear_flux_dry: $(BIN) $(BIN3) 108 ./$(BIN) $(CNGF_PF_DRY_OPTS) | ./$(BIN3) | diff $@.std - 109 110 shear_flux_wet: $(BIN) 111 ./$(BIN) $(CNGF_PF_WET_OPTS) | ./$(BIN3) | diff $@.std - 112 113 114 cngf_pf_dry.std: $(BIN) 115 ./$(BIN) $(CNGF_PF_DRY_OPTS) > $@ 116 117 cngf_pf_dry_norm.std: $(BIN) 118 ./$(BIN) $(CNGF_PF_DRY_NORM_OPTS) > $@ 119 120 cngf_pf_dry_cohesive.std: $(BIN) 121 ./$(BIN) $(CNGF_PF_DRY_COHESIVE_OPTS) > $@ 122 123 cngf_pf_dry_vconst.std: $(BIN) 124 ./$(BIN) $(CNGF_PF_DRY_VCONST_OPTS) > $@ 125 126 cngf_pf_wet.std: $(BIN) 127 ./$(BIN) $(CNGF_PF_WET_OPTS) > $@ 128 129 cngf_pf_wet_norm.std: $(BIN) 130 ./$(BIN) $(CNGF_PF_WET_NORM_OPTS) > $@ 131 132 cngf_pf_wet_vari.std: $(BIN) 133 ./$(BIN) $(CNGF_PF_WET_VARI_OPTS) > $@ 134 135 cngf_pf_wet_vari_diff.std: $(BIN) 136 ./$(BIN) $(CNGF_PF_WET_VARI_DIFF_OPTS) > $@ 137 138 cngf_pf_wet_vari_pulse.std: $(BIN) 139 ./$(BIN) $(CNGF_PF_WET_VARI_PULSE_OPTS) > $@ 140 141 cngf_pf_wet_vari_pulse_vlim.std: $(BIN) 142 ./$(BIN) $(CNGF_PF_WET_VARI_PULSE_VLIM_OPTS) > $@ 143 144 cngf_pf_dry_transient.std: $(BIN) 145 ./$(BIN) $(CNGF_PF_DRY_TRANS_OPTS) > $@ 146 147 cngf_pf_dry_trans_undercons.std: $(BIN) 148 ./$(BIN) $(CNGF_PF_DRY_TRANS_UNDERCONS_OPTS) > $@ 149 150 cngf_pf_dry_trans_overcons.std: $(BIN) 151 ./$(BIN) $(CNGF_PF_DRY_TRANS_OVERCONS_OPTS) > $@ 152 153 max_depth_misc.std: $(BIN2) 154 $(MAX_DEPTH_MISC) > $@ 155 156 shear_flux_dry.std: $(BIN) $(BIN3) 157 ./$(BIN) $(CNGF_PF_DRY_OPTS) | ./$(BIN3) > $@ 158 159 shear_flux_wet.std: $(BIN) $(BIN3) 160 ./$(BIN) $(CNGF_PF_WET_OPTS) | ./$(BIN3) > $@ 161 162 $(BIN): 163 make -C .. 164 165 clean: 166 rm -f *.txt 167 168 .PHONY: $(TESTS) test standards clean