Skip to content

Commit

Permalink
try different syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed May 17, 2024
1 parent b041496 commit 65a54f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions experiments/ClimaEarth/components/atmosphere/climaatmos.jl
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,11 @@ function get_atmos_config_dict(coupler_dict)
)
atmos_config = merge(atmos_config, Dict("output_dir" => atmos_output_dir))

!isnothing(atmos_config["restart_file"]) && atmos_config["restart_file"] =
replace(atmos_config["restart_file"], "active" => "0000")
# set restart file to the initial file saved in this location if it is not nothing
# TODO this is hardcoded and should be fixed once we have a better restart system
if !isnothing(atmos_config["restart_file"])
atmos_config["restart_file"] = replace(atmos_config["restart_file"], "active" => "0000")
end
return atmos_config
end

Expand Down

0 comments on commit 65a54f3

Please sign in to comment.