Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MOM_surface_forcing.F90 #648

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
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
7 changes: 3 additions & 4 deletions config_src/drivers/solo_driver/MOM_surface_forcing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ subroutine wind_forcing_from_file(sfc_state, forces, day, G, US, CS)
Isq = G%IscB ; Ieq = G%IecB ; Jsq = G%JscB ; Jeq = G%JecB

call get_time(day, seconds, days)
time_lev_daily = days - 365*floor(real(days) / 365.0)
time_lev_daily = days - CS%wind_nlev*floor(real(days) / CS%wind_nlev)

if (time_lev_daily < 31) then ; time_lev_monthly = 0
elseif (time_lev_daily < 59) then ; time_lev_monthly = 1
Expand All @@ -714,9 +714,8 @@ subroutine wind_forcing_from_file(sfc_state, forces, day, G, US, CS)
time_lev_monthly = time_lev_monthly+1

select case (CS%wind_nlev)
case (12) ; time_lev = time_lev_monthly
case (365) ; time_lev = time_lev_daily
case default ; time_lev = 1
case (2:12) ; time_lev = time_lev_monthly
case default ; time_lev = time_lev_daily
end select

if (time_lev /= CS%wind_last_lev) then
Expand Down