@@ -39,7 +39,7 @@ module EDSurfaceRadiationMod
3939 public :: ED_Norman_Radiation ! Surface albedo and two-stream fluxes
4040 public :: ED_SunShadeFracs
4141
42- logical :: DEBUG = .false. ! for debugging this module
42+ logical :: debug = .false. ! for debugging this module
4343
4444
4545 real (r8 ), public :: albice(maxSWb) = & ! albedo land ice by waveband (1=vis, 2=nir)
@@ -712,7 +712,7 @@ subroutine ED_Norman_Radiation (nsites, sites, bc_in, bc_out )
712712 if (ib == ivis) then ! only set the absorbed PAR for the visible light band.
713713 do iv = 1 , currentPatch% nrad(L,ft)
714714 if (radtype== idirect) then
715- if ( DEBUG ) then
715+ if ( debug ) then
716716 write (fates_log(),* ) ' EDsurfAlb 730 ' ,Abs_dif_z(ft,iv),currentPatch% f_sun(L,ft,iv)
717717 write (fates_log(),* ) ' EDsurfAlb 731 ' , currentPatch% fabd_sha_z(L,ft,iv), &
718718 currentPatch% fabd_sun_z(L,ft,iv)
@@ -728,7 +728,7 @@ subroutine ED_Norman_Radiation (nsites, sites, bc_in, bc_out )
728728 currentPatch% fabi_sun_z(L,ft,iv) = Abs_dif_z(ft,iv) * &
729729 currentPatch% f_sun(L,ft,iv)
730730 endif
731- if ( DEBUG ) then
731+ if ( debug ) then
732732 write (fates_log(),* ) ' EDsurfAlb 740 ' , currentPatch% fabd_sha_z(L,ft,iv), &
733733 currentPatch% fabd_sun_z(L,ft,iv)
734734 endif
@@ -979,7 +979,7 @@ subroutine ED_SunShadeFracs(nsites, sites,bc_in,bc_out)
979979
980980 ifp= ifp+1
981981
982- if ( DEBUG ) write (fates_log(),* ) ' edsurfRad_5600' ,ifp,s,cpatch% NCL_p,numpft
982+ if ( debug ) write (fates_log(),* ) ' edsurfRad_5600' ,ifp,s,cpatch% NCL_p,numpft
983983
984984 ! zero out various datas
985985 cpatch% ed_parsun_z(:,:,:) = 0._r8
@@ -1007,7 +1007,7 @@ subroutine ED_SunShadeFracs(nsites, sites,bc_in,bc_out)
10071007 do CL = 1 , cpatch% NCL_p
10081008 do FT = 1 ,numpft
10091009
1010- if ( DEBUG ) write (fates_log(),* ) ' edsurfRad_5601' ,CL,FT,cpatch% nrad(CL,ft)
1010+ if ( debug ) write (fates_log(),* ) ' edsurfRad_5601' ,CL,FT,cpatch% nrad(CL,ft)
10111011
10121012 do iv = 1 , cpatch% nrad(CL,ft) ! NORMAL CASE.
10131013
@@ -1017,8 +1017,8 @@ subroutine ED_SunShadeFracs(nsites, sites,bc_in,bc_out)
10171017 cpatch% ed_laisun_z(CL,ft,iv) = cpatch% elai_profile(CL,ft,iv) * &
10181018 cpatch% f_sun(CL,ft,iv)
10191019
1020- if ( DEBUG ) write (fates_log(),* ) ' edsurfRad 570 ' ,cpatch% elai_profile(CL,ft,iv)
1021- if ( DEBUG ) write (fates_log(),* ) ' edsurfRad 571 ' ,cpatch% f_sun(CL,ft,iv)
1020+ if ( debug ) write (fates_log(),* ) ' edsurfRad 570 ' ,cpatch% elai_profile(CL,ft,iv)
1021+ if ( debug ) write (fates_log(),* ) ' edsurfRad 571 ' ,cpatch% f_sun(CL,ft,iv)
10221022
10231023 cpatch% ed_laisha_z(CL,ft,iv) = cpatch% elai_profile(CL,ft,iv) * &
10241024 (1._r8 - cpatch% f_sun(CL,ft,iv))
@@ -1052,16 +1052,16 @@ subroutine ED_SunShadeFracs(nsites, sites,bc_in,bc_out)
10521052 ! If sun/shade big leaf code, nrad=1 and fluxes from SurfaceAlbedo
10531053 ! are canopy integrated so that layer values equal big leaf values.
10541054
1055- if ( DEBUG ) write (fates_log(),* ) ' edsurfRad 645 ' ,cpatch% NCL_p,numpft
1055+ if ( debug ) write (fates_log(),* ) ' edsurfRad 645 ' ,cpatch% NCL_p,numpft
10561056
10571057 do CL = 1 , cpatch% NCL_p
10581058 do FT = 1 ,numpft
10591059
1060- if ( DEBUG ) write (fates_log(),* ) ' edsurfRad 649 ' ,cpatch% nrad(CL,ft)
1060+ if ( debug ) write (fates_log(),* ) ' edsurfRad 649 ' ,cpatch% nrad(CL,ft)
10611061
10621062 do iv = 1 , cpatch% nrad(CL,ft)
10631063
1064- if ( DEBUG ) then
1064+ if ( debug ) then
10651065 write (fates_log(),* ) ' edsurfRad 653 ' , cpatch% ed_parsun_z(CL,ft,iv)
10661066 write (fates_log(),* ) ' edsurfRad 654 ' , bc_in(s)% solad_parb(ifp,ipar)
10671067 write (fates_log(),* ) ' edsurfRad 655 ' , bc_in(s)% solai_parb(ifp,ipar)
@@ -1073,13 +1073,13 @@ subroutine ED_SunShadeFracs(nsites, sites,bc_in,bc_out)
10731073 bc_in(s)% solad_parb(ifp,ipar)* cpatch% fabd_sun_z(CL,ft,iv) + &
10741074 bc_in(s)% solai_parb(ifp,ipar)* cpatch% fabi_sun_z(CL,ft,iv)
10751075
1076- if ( DEBUG )write (fates_log(),* ) ' edsurfRad 663 ' , cpatch% ed_parsun_z(CL,ft,iv)
1076+ if ( debug )write (fates_log(),* ) ' edsurfRad 663 ' , cpatch% ed_parsun_z(CL,ft,iv)
10771077
10781078 cpatch% ed_parsha_z(CL,ft,iv) = &
10791079 bc_in(s)% solad_parb(ifp,ipar)* cpatch% fabd_sha_z(CL,ft,iv) + &
10801080 bc_in(s)% solai_parb(ifp,ipar)* cpatch% fabi_sha_z(CL,ft,iv)
10811081
1082- if ( DEBUG ) write (fates_log(),* ) ' edsurfRad 669 ' , cpatch% ed_parsha_z(CL,ft,iv)
1082+ if ( debug ) write (fates_log(),* ) ' edsurfRad 669 ' , cpatch% ed_parsha_z(CL,ft,iv)
10831083
10841084 end do ! iv
10851085 end do ! FT
0 commit comments