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

Local Solar Time Computation #323

Merged
merged 7 commits into from
Aug 30, 2019
5 changes: 4 additions & 1 deletion cicecore/cicedynB/general/ice_forcing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2275,8 +2275,11 @@ subroutine compute_shortwave(nx_block, ny_block, &
do j=jlo,jhi
do i=ilo,ihi
deg2rad = pi/c180
! solar_time = mod(real(sec,kind=dbl_kind),secday)/c3600 &
! + c12*sin(p5*TLON(i,j))
solar_time = mod(real(sec,kind=dbl_kind),secday)/c3600 &
+ c12*sin(p5*TLON(i,j))
+ TLON(i,j)/(15._dbl_kind*deg2rad)
if (solar_time .ge. 24._dbl_kind) solar_time = solar_time - 24._dbl_kind
hour_angle = (c12 - solar_time)*pi/c12
declin = 23.44_dbl_kind*cos((172._dbl_kind-yday) &
* c2*pi/c365)*deg2rad ! use dayyr instead of c365???
Expand Down