From 937d543fc63181c457b5eb1667d78c186fbbe62a Mon Sep 17 00:00:00 2001 From: julietbravo Date: Wed, 27 May 2020 14:29:59 +0200 Subject: [PATCH] Only set `tauField` when A-gs is enabled --- src/modradiation.f90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modradiation.f90 b/src/modradiation.f90 index b61ea7fa..80620bc6 100644 --- a/src/modradiation.f90 +++ b/src/modradiation.f90 @@ -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(:) @@ -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