Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
review comments
  • Loading branch information
anton-seaice committed Apr 28, 2026
commit c1ddd6ec0f845a525a07c1054a0aa9c1f0a48512
21 changes: 14 additions & 7 deletions mediator/med_phases_post_rof_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -567,13 +567,20 @@ subroutine med_phases_post_rof_init_rof_spread_rofi(gcomp, rc)
endif

! adjust correction so that it's sums to 1 in each hemisphere
do i = 1, size(areas)
if (lats(i) < 0.0_r8 .and. spread_rofi_sh) then
rof2ocn_spread(i,month) = rof2ocn_spread(i,month) / global_sum(1)
else if ( spread_rofi_nh ) then
rof2ocn_spread(i,month) = rof2ocn_spread(i,month) / global_sum(2)
end if
end do
if (spread_rofi_sh) then
do n = 1, size(runoff_flux)
if (lats(n) < 0.0_r8) then
rof2ocn_spread(i,month) = rof2ocn_spread(i,month) / global_sum(1)
end if
end do
end if
if (spread_rofi_nh) then
do n = 1, size(runoff_flux)
if (lats(n) >= 0.0_r8) then
rof2ocn_spread(i,month) = rof2ocn_spread(i,month) / global_sum(2)
end if
end do
end if

enddo ! month

Expand Down