Skip to content

Commit

Permalink
Merge pull request #53 from julietbravo/master
Browse files Browse the repository at this point in the history
Only set `tauField` when A-gs is enabled
  • Loading branch information
fjansson authored Jun 3, 2020
2 parents f719f49 + 937d543 commit 9278ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modradiation.f90
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ subroutine radpar

use modglobal, only : i1,j1,kmax, k1,ih,jh,dzf,cp,xtime,rtimee,xday,xlat,xlon
use modfields, only : ql0, sv0, rhof,exnf
use modsurfdata, only : tauField
use modsurfdata, only : tauField, lrsAgs
implicit none
real, allocatable :: lwpt(:),lwpb(:)
real, allocatable :: tau(:)
Expand Down Expand Up @@ -339,7 +339,7 @@ subroutine radpar
tauc=tauc+tau(k)
end do
endif
tauField(i,j) = tauc
if (lrsAgs) tauField(i,j) = tauc
call sunray(tau,tauc,i,j)
end if

Expand Down

0 comments on commit 9278ce3

Please sign in to comment.