Skip to content

Commit

Permalink
light: updated A,g1,g2 accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
jornbr committed Apr 29, 2024
1 parent 664f6f2 commit 77f892e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/meanflow/light.F90
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ subroutine light(nlev,I_0,rad,swr_abs)
! !DESCRIPTION:
!
! !USES:
use observations, only: A,g1,g2
use observations, only: A_,g1_,g2_
use meanflow, only: h,bioshade

IMPLICIT NONE
Expand Down Expand Up @@ -47,7 +47,7 @@ subroutine light(nlev,I_0,rad,swr_abs)
z =_ZERO_
do i=nlev-1,0,-1
z=z+h(i+1)
rad(i)=I_0*(A*exp(-z/g1)+(1.-A)*exp(-z/g2)*bioshade(i+1))
rad(i)=I_0*(A*exp(-z/g1_%value)+(1.-A_%value)*exp(-z/g2_%value)*bioshade(i+1))
end do

! light absorption per layer (W m-2) is the difference between shortwave at the top and bottom interface
Expand Down

0 comments on commit 77f892e

Please sign in to comment.