54 type(model_state_type),
target,
intent(inout) :: current_state
55 type (str_mcc_profiles),
intent(in) :: mcc
56 type (str_merge_atm),
intent(inout) :: merge_fields
59 allocate(merge_fields%pref_loc(current_state%local_grid%size(z_index)))
60 allocate(merge_fields%t_n_loc(current_state%local_grid%size(z_index)))
61 allocate(merge_fields%t_level_loc(current_state%local_grid%size(z_index)))
64 allocate(merge_fields%t_n(mcc%irad_levs))
65 allocate(merge_fields%qv_n(mcc%irad_levs))
66 allocate(merge_fields%ql_n(mcc%irad_levs))
67 allocate(merge_fields%qi_n(mcc%irad_levs))
68 allocate(merge_fields%pres_n(mcc%irad_levs))
69 allocate(merge_fields%o3_n(mcc%irad_levs))
70 allocate(merge_fields%cloudnumber_n(mcc%irad_levs))
73 allocate(merge_fields%total_cloud_fraction(mcc%irad_levs))
74 allocate(merge_fields%liquid_cloud_fraction(mcc%irad_levs))
75 allocate(merge_fields%ice_cloud_fraction(mcc%irad_levs))
78 allocate(merge_fields%t_level(0:mcc%irad_levs))
79 allocate(merge_fields%qv_level(mcc%irad_levs))
80 allocate(merge_fields%ql_level(mcc%irad_levs))
81 allocate(merge_fields%qi_level(mcc%irad_levs))
82 allocate(merge_fields%pres_level(0:mcc%irad_levs))
83 allocate(merge_fields%o3_level(mcc%irad_levs))
86 allocate(merge_fields%mass(mcc%irad_levs))
89 allocate(merge_fields%lw_heat_rate_radlevs(mcc%irad_levs))
90 allocate(merge_fields%sw_heat_rate_radlevs(mcc%irad_levs))
92 merge_fields%pref_loc(:) = 0.0
93 merge_fields%t_n_loc(:) = 0.0
94 merge_fields%t_level_loc(:) = 0.0
96 merge_fields%t_n(:) = 0.0
97 merge_fields%qv_n(:) = 0.0
98 merge_fields%ql_n(:) = 0.0
99 merge_fields%qi_n(:) = 0.0
100 merge_fields%pres_n(:) = 0.0
101 merge_fields%o3_n(:) = 0.0
103 merge_fields%t_level(:) = 0.0
104 merge_fields%qv_level(:) = 0.0
105 merge_fields%ql_level(:) = 0.0
106 merge_fields%qi_level(:) = 0.0
107 merge_fields%pres_level(:) = 0.0
108 merge_fields%o3_level(:) = 0.0
110 merge_fields%total_cloud_fraction(:) = 0.0
111 merge_fields%liquid_cloud_fraction(:) = 0.0
112 merge_fields%ice_cloud_fraction(:) = 0.0
114 merge_fields%mass(:) = 0.0
116 merge_fields%lw_heat_rate_radlevs(:) = 0.0
117 merge_fields%sw_heat_rate_radlevs(:) = 0.0