File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
experiments/ClimaEarth/user_io Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,13 @@ This function may modify the input dictionary to remove unnecessary keys.
4444- All arguments needed for the coupled simulation
4545"""
4646function get_coupler_args (config_dict:: Dict )
47+ # Vector of TOML files containing model parameters
48+ # We need to modify this Dict entry to be consistent with ClimaAtmos TOML files
49+ config_dict[" coupler_toml" ] = map (config_dict[" coupler_toml" ]) do file
50+ isfile (file) ? file : joinpath (pkgdir (ClimaCoupler), file)
51+ end
52+ parameter_files = config_dict[" coupler_toml" ]
53+
4754 # Make a copy so that we don't modify the original input
4855 config_dict = copy (config_dict)
4956
@@ -58,11 +65,6 @@ function get_coupler_args(config_dict::Dict)
5865 random_seed = config_dict[" unique_seed" ] ? time_ns () : 1234
5966 FT = config_dict[" FLOAT_TYPE" ] == " Float64" ? Float64 : Float32
6067
61- # Vector of TOML files containing model parameters
62- parameter_files = map (config_dict[" coupler_toml" ]) do file
63- isfile (file) ? file : joinpath (pkgdir (ClimaCoupler), file)
64- end
65-
6668 # Time information
6769 t_end = Float64 (Utilities. time_to_seconds (config_dict[" t_end" ]))
6870 t_start = Float64 (Utilities. time_to_seconds (config_dict[" t_start" ]))
You can’t perform that action at this time.
0 commit comments