Skip to content

Commit

Permalink
light_cycle: corrected light at start of the year
Browse files Browse the repository at this point in the history
  • Loading branch information
jornbr committed Oct 5, 2017
1 parent 0486733 commit af58a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/examples/light_cycle.F90
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ subroutine do_surface(self,_ARGUMENTS_DO_SURFACE_)

_HORIZONTAL_LOOP_BEGIN_
_GET_GLOBAL_(self%id_yearday,yearday)
if (mod(yearday-self%offset, 1.0_rk) < self%light_period) then
if (modulo(yearday-self%offset, 1.0_rk) < self%light_period) then
_SET_HORIZONTAL_DIAGNOSTIC_(self%id_swr_sf, self%swr)
else
_SET_HORIZONTAL_DIAGNOSTIC_(self%id_swr_sf, 0.0_rk)
Expand Down

0 comments on commit af58a25

Please sign in to comment.