@@ -129,7 +129,9 @@ subroutine initialize_musica_species_constituents(constituents_properties, &
129
129
num_tuvx_only_gas_species = 3
130
130
end if
131
131
132
- allocate (species_group(num_micm_species + num_tuvx_constituents + num_tuvx_only_gas_species))
132
+ allocate (species_group(num_micm_species + num_tuvx_constituents + num_tuvx_only_gas_species), &
133
+ stat= errcode, errmsg= errmsg)
134
+ if (errcode /= 0 ) return
133
135
134
136
species_group(1 ) = species_constructor(&
135
137
" cloud_liquid_water_mixing_ratio_wrt_moist_air_and_condensed_water" , 0.00060_kind_phys )
@@ -199,20 +201,20 @@ subroutine musica_ccpp_dependencies_init( &
199
201
end if
200
202
201
203
allocate (photolysis_wavelength_grid_interfaces(photolysis_wavelength_grid_interface_dimension), &
202
- stat= errcode)
204
+ stat= errcode, errmsg = errmsg )
203
205
call check_allocate(errcode, subroutine_name, &
204
206
' photolysis_wavelength_grid_interfaces(photolysis_wavelength_grid_interface_dimension)' , &
205
207
file= __FILE__, line= __LINE__)
206
208
allocate (extraterrestrial_radiation_flux(photolysis_wavelength_grid_section_dimension), &
207
- stat= errcode)
209
+ stat= errcode, errmsg = errmsg )
208
210
call check_allocate(errcode, subroutine_name, &
209
211
' extraterrestrial_radiation_flux(photolysis_wavelength_grid_section_dimension)' , &
210
212
file= __FILE__, line= __LINE__)
211
- allocate (surface_albedo(horizontal_dimension), stat= errcode)
213
+ allocate (surface_albedo(horizontal_dimension), stat= errcode, errmsg = errmsg )
212
214
call check_allocate(errcode, subroutine_name, &
213
215
' surface_albedo(horizontal_dimension)' , &
214
216
file= __FILE__, line= __LINE__)
215
- allocate (blackbody_temperature_at_surface(horizontal_dimension), stat= errcode)
217
+ allocate (blackbody_temperature_at_surface(horizontal_dimension), stat= errcode, errmsg = errmsg )
216
218
call check_allocate(errcode, subroutine_name, &
217
219
' blackbody_temperature_at_surface(horizontal_dimension)' , &
218
220
file= __FILE__, line= __LINE__)
0 commit comments