Skip to content

Commit

Permalink
Merge pull request #24 from huppd/refactor_if_loop_structure
Browse files Browse the repository at this point in the history
change if-loop-structure
  • Loading branch information
reuterbal authored Sep 13, 2024
2 parents a10e41e + fbc42b2 commit cd0a227
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 cd0a227

Please sign in to comment.