source: LMDZ6/trunk/libf/phylmd/ecrad/test/i3rc/Makefile @ 5040

Last change on this file since 5040 was 4773, checked in by idelkadi, 9 months ago
  • Update of Ecrad in LMDZ The same organization of the Ecrad offline version is retained in order to facilitate the updating of Ecrad in LMDZ and the comparison between online and offline results. version 1.6.1 of Ecrad (https://github.com/lguez/ecrad.git)
  • Implementation of the double call of Ecrad in LMDZ


File size: 3.5 KB
Line 
1INPUT_PROFILE = i3rc_mls_cumulus
2
3DRIVER = ../../bin/ecrad
4CHANGENAM = ../common/change_namelist.sh
5CONFIG = configI3RC.nam
6
7# Typing "make" will run radiation scheme in all possible ways
8all: test
9
10test: $(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
18i3rc_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
31i3rc_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
36i3rc_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
61i3rc_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
66i3rc_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
72i3rc_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
81clean:
82        rm -f $(INPUT_PROFILE)*_out.nc tmp*.nc radiative_properties*.nc \
83        $(INPUT_PROFILE)*_sza.nc inputs.nc config_*.nam gmon.out
Note: See TracBrowser for help on using the repository browser.