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

Only set tauField when A-gs is enabled #53

Merged
merged 1 commit into from
Jun 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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