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.
44
44
- All arguments needed for the coupled simulation
45
45
"""
46
46
function 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
+
47
54
# Make a copy so that we don't modify the original input
48
55
config_dict = copy (config_dict)
49
56
@@ -58,11 +65,6 @@ function get_coupler_args(config_dict::Dict)
58
65
random_seed = config_dict[" unique_seed" ] ? time_ns () : 1234
59
66
FT = config_dict[" FLOAT_TYPE" ] == " Float64" ? Float64 : Float32
60
67
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
-
66
68
# Time information
67
69
t_end = Float64 (Utilities. time_to_seconds (config_dict[" t_end" ]))
68
70
t_start = Float64 (Utilities. time_to_seconds (config_dict[" t_start" ]))
You can’t perform that action at this time.
0 commit comments