Skip to content
Merged
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
6 changes: 5 additions & 1 deletion physics/gcycle.F90
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ subroutine gcycle (me, nthrds, nx, ny, isc, jsc, nsst, tile_num, nlunit, &


logical :: lake(nx*ny)
integer :: i_indx(nx*ny), j_indx(nx*ny)
character(len=6) :: tile_num_ch
real(kind=kind_phys) :: sig1t, dt_warm
integer :: npts, nb, ix, jx, ls, ios, ll
Expand Down Expand Up @@ -120,6 +121,9 @@ subroutine gcycle (me, nthrds, nx, ny, isc, jsc, nsst, tile_num, nlunit, &
end if
!
do ix=1,npts
i_indx(ix) = imap(ix) + isc - 1
j_indx(ix) = jmap(ix) + jsc - 1

ZORFCS(ix) = zorll (ix)
if (slmsk(ix) > 1.9_kind_phys .and. .not. frac_grid) then
ZORFCS(ix) = zorli (ix)
Expand Down Expand Up @@ -190,7 +194,7 @@ subroutine gcycle (me, nthrds, nx, ny, isc, jsc, nsst, tile_num, nlunit, &
nlunit, size(input_nml_file), input_nml_file, &
lake, min_lakeice, min_seaice, &
ialb, isot, ivegsrc, &
trim(tile_num_ch), imap, jmap)
trim(tile_num_ch), i_indx, j_indx)
#ifndef INTERNAL_FILE_NML
close (Model%nlunit)
#endif
Expand Down