Skip to content

Commit

Permalink
replace SIC_init with SIC_current
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Oct 2, 2023
1 parent 9cad2b8 commit 3967273
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions experiments/AMIP/modular/coupler_driver_modular.jl
Original file line number Diff line number Diff line change
Expand Up @@ -493,17 +493,15 @@ function solve_coupler!(cs)
if cs.dates.date[1] >= next_date_in_file(cs.mode.SST_info)
update_midmonth_data!(cs.dates.date[1], cs.mode.SST_info)
end
update_field!(
ocean_sim,
Val(:surface_temperature),
interpolate_midmonth_to_daily(cs.dates.date[1], cs.mode.SST_info),
)
SST_current = interpolate_midmonth_to_daily(cs.dates.date[1], cs.mode.SST_info)
update_field!(ocean_sim, Val(:surface_temperature), SST_current)

if cs.dates.date[1] >= next_date_in_file(cs.mode.SIC_info)
update_midmonth_data!(cs.dates.date[1], cs.mode.SIC_info)
end
interpolate_midmonth_to_daily(cs.dates.date[1], cs.mode.SIC_info)
update_field!(ice_sim, Val(:area_fraction), get_ice_fraction.(SIC_init, mono_surface)) # TODO: change to SIC
SIC_current =
get_ice_fraction.(interpolate_midmonth_to_daily(cs.dates.date[1], cs.mode.SIC_info), mono_surface)
update_field!(ice_sim, Val(:area_fraction), SIC_current)

## calculate and accumulate diagnostics at each timestep
ClimaComms.barrier(comms_ctx)
Expand Down

0 comments on commit 3967273

Please sign in to comment.