[4773] | 1 | INPUT_PROFILE = i3rc_mls_cumulus |
---|
| 2 | |
---|
| 3 | DRIVER = ../../bin/ecrad |
---|
| 4 | CHANGENAM = ../common/change_namelist.sh |
---|
| 5 | CONFIG = configI3RC.nam |
---|
| 6 | |
---|
| 7 | # Typing "make" will run radiation scheme in all possible ways |
---|
| 8 | all: test |
---|
| 9 | |
---|
| 10 | test: $(INPUT_PROFILE)_sza.nc i3rc_spartacus i3rc_tripleclouds i3rc_mcica |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | # Create netcdf file containing duplicated profile but with varying |
---|
| 14 | # solar zenith angle |
---|
| 15 | $(INPUT_PROFILE)_sza.nc: $(INPUT_PROFILE).nc duplicate_profiles.sh |
---|
| 16 | ./duplicate_profiles.sh $(INPUT_PROFILE).nc $(INPUT_PROFILE)_sza.nc |
---|
| 17 | |
---|
| 18 | i3rc_spartacus: $(INPUT_PROFILE)_sza.nc |
---|
| 19 | $(CHANGENAM) $(CONFIG) config_3reg_3d.nam \ |
---|
| 20 | n_regions=3 do_3d_effects=true do_3d_lw_multilayer_effects=true |
---|
| 21 | $(CHANGENAM) $(CONFIG) config_3reg_1d.nam \ |
---|
| 22 | n_regions=3 do_3d_effects=false do_3d_lw_multilayer_effects=false |
---|
| 23 | $(CHANGENAM) $(CONFIG) config_3reg_3d_clustering.nam \ |
---|
| 24 | n_regions=3 do_3d_effects=true effective_size_scaling=1.449 |
---|
| 25 | $(DRIVER) config_3reg_1d.nam \ |
---|
| 26 | $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_3reg_1d_out.nc |
---|
| 27 | $(DRIVER) config_3reg_3d.nam \ |
---|
| 28 | $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_3reg_3d_out.nc |
---|
| 29 | $(DRIVER) config_3reg_3d_clustering.nam \ |
---|
| 30 | $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_3reg_3d_clustering_out.nc |
---|
| 31 | i3rc_spartacus2: $(INPUT_PROFILE)_sza.nc |
---|
| 32 | $(CHANGENAM) $(CONFIG) config_2reg_3d.nam \ |
---|
| 33 | n_regions=2 do_3d_effects=true do_3d_lw_multilayer_effects=true |
---|
| 34 | $(DRIVER) config_2reg_3d.nam \ |
---|
| 35 | $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_2reg_3d_out.nc |
---|
| 36 | i3rc_spartacus_extra: $(INPUT_PROFILE)_sza.nc |
---|
| 37 | $(CHANGENAM) $(CONFIG) config_3reg_3d_explicit.nam \ |
---|
| 38 | sw_entrapment_name='"Explicit"' |
---|
| 39 | $(CHANGENAM) $(CONFIG) config_3reg_3d_nonfractal.nam \ |
---|
| 40 | sw_entrapment_name='"Non-fractal"' |
---|
| 41 | $(CHANGENAM) $(CONFIG) config_3reg_3d_edgeonly.nam \ |
---|
| 42 | sw_entrapment_name='"Edge-only"' |
---|
| 43 | $(CHANGENAM) $(CONFIG) config_3reg_1d_explicit.nam \ |
---|
| 44 | do_3d_effects=false sw_entrapment_name='"Explicit"' |
---|
| 45 | $(CHANGENAM) $(CONFIG) config_3reg_1d_edgeonly.nam \ |
---|
| 46 | do_3d_effects=false sw_entrapment_name='"Edge-only"' |
---|
| 47 | $(CHANGENAM) $(CONFIG) config_3reg_3d_explicit_ohf1.nam \ |
---|
| 48 | sw_entrapment_name='"Explicit"' overhang_factor=1.0 |
---|
| 49 | $(DRIVER) config_3reg_3d_explicit.nam \ |
---|
| 50 | $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_3reg_3d_explicit_out.nc |
---|
| 51 | $(DRIVER) config_3reg_3d_nonfractal.nam \ |
---|
| 52 | $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_3reg_3d_nonfractal_out.nc $(DRIVER) config_3reg_3d_edgeonly.nam \ |
---|
| 53 | $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_3reg_3d_edgeonly_out.nc |
---|
| 54 | $(DRIVER) config_3reg_1d_explicit.nam \ |
---|
| 55 | $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_3reg_1d_explicit_out.nc |
---|
| 56 | $(DRIVER) config_3reg_1d_edgeonly.nam \ |
---|
| 57 | $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_3reg_1d_edgeonly_out.nc |
---|
| 58 | $(DRIVER) config_3reg_3d_explicit_ohf1.nam \ |
---|
| 59 | $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_3reg_3d_explicit_ohf1_out.nc |
---|
| 60 | |
---|
| 61 | i3rc_tripleclouds: $(INPUT_PROFILE)_sza.nc |
---|
| 62 | $(CHANGENAM) $(CONFIG) config_tc.nam n_regions=3 \ |
---|
| 63 | do_3d_effects=false sw_solver_name='"Tripleclouds"' lw_solver_name='"Tripleclouds"' |
---|
| 64 | $(DRIVER) config_tc.nam $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_tc_out.nc |
---|
| 65 | |
---|
| 66 | i3rc_mcica: $(INPUT_PROFILE)_sza.nc |
---|
| 67 | $(CHANGENAM) $(CONFIG) config_mcica.nam \ |
---|
| 68 | sw_solver_name='"McICA"' lw_solver_name='"McICA"' |
---|
| 69 | $(DRIVER) config_mcica.nam \ |
---|
| 70 | $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_mcica_out.nc |
---|
| 71 | |
---|
| 72 | i3rc_print_entrapment: $(INPUT_PROFILE)_sza.nc |
---|
| 73 | $(CHANGENAM) $(CONFIG) config_print_entr.nam \ |
---|
| 74 | sw_entrapment_name='"Explicit"' \ |
---|
| 75 | gas_model_name='"Monochromatic"' \ |
---|
| 76 | sw_albedo=0.2 |
---|
| 77 | $(DRIVER) config_print_entr.nam \ |
---|
| 78 | $(INPUT_PROFILE)_sza.nc $(INPUT_PROFILE)_mono_entr_out.nc |
---|
| 79 | |
---|
| 80 | # Clean data files |
---|
| 81 | clean: |
---|
| 82 | rm -f $(INPUT_PROFILE)*_out.nc tmp*.nc radiative_properties*.nc \ |
---|
| 83 | $(INPUT_PROFILE)*_sza.nc inputs.nc config_*.nam gmon.out |
---|