@@ -69,8 +69,6 @@ function get_coupler_config_dict(config_file)
6969 # Select the correct timestep for each component model based on which are available
7070 parse_component_dts! (config_dict)
7171
72- # Add any extra diagnostics
73- add_extra_diagnostics! (config_dict)
7472 return config_dict
7573end
7674
@@ -302,45 +300,3 @@ function parse_component_dts!(config_dict)
302300 config_dict[" component_dt_dict" ] = component_dt_dict
303301 return nothing
304302end
305-
306- """
307- add_extra_diagnostics!(config_dict)
308-
309- Conditionally add extra diagnostics to the config dictionary based on the
310- simulation type and flag to use diagnostics. Currently, the only extra
311- diagnostic is the atmosphere TOA net flux for AMIP simulations, but more diagnostics
312- can be added for any component by following the structure in `climaatmos_extra_diags.jl`.
313-
314- The added atmosphere diagnostics are added to the `extra_atmos_diagnostics` field
315- of the config dict. The `diagnostics_dt` field is also added to the config dict to
316- coordinate the output frequency of the diagnostics.
317-
318- # Arguments
319- - `config_dict`: A dictionary mapping configuration keys to the specified settings
320- """
321- function add_extra_diagnostics! (config_dict)
322- # Diagnostics information
323- mode_name = config_dict[" mode_name" ]
324- use_coupler_diagnostics = config_dict[" use_coupler_diagnostics" ]
325- t_end = Float64 (Utilities. time_to_seconds (config_dict[" t_end" ]))
326- t_start = Float64 (Utilities. time_to_seconds (config_dict[" t_start" ]))
327- diagnostics_dt = nothing
328- if mode_name == " amip" && use_coupler_diagnostics
329- @info " Using default AMIP diagnostics"
330- (period, diagnostics_dt) = get_diag_period (t_start, t_end)
331-
332- # Additional atmosphere diagnostics
333- ! haskey (config_dict, " extra_atmos_diagnostics" ) &&
334- (config_dict[" extra_atmos_diagnostics" ] = Vector {Dict{Any, Any}} ())
335- push! (
336- config_dict[" extra_atmos_diagnostics" ],
337- Dict (
338- " short_name" => [" toa_fluxes_net" ],
339- " reduction_time" => " average" ,
340- " period" => period,
341- ),
342- )
343- end
344- config_dict[" diagnostics_dt" ] = diagnostics_dt
345- return nothing
346- end
0 commit comments