Skip to content

Commit

Permalink
change if-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
huppd committed Sep 12, 2024
1 parent a10e41e commit fbc42b2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions radiation/radiation_ifs_rrtm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -594,12 +594,16 @@ subroutine gas_optics(ncol,nlev,istartcol,iendcol, &
ssa_sw(jg,nlev+1-jlev,jcol) = ZSSA_SW(jcol,jlev,jg)
end do
end do
if (present(incoming_sw)) then
end do

if (present(incoming_sw)) then
do jcol = istartcol,iendcol
do jg = 1,config%n_g_sw
incoming_sw(jg,jcol) = incoming_sw_scale(jcol) * ZINCSOL(jcol,jg)
end do
end if
end do
end do
end if

end if

end if
Expand Down

0 comments on commit fbc42b2

Please sign in to comment.