Skip to content

Commit

Permalink
Changing "method_blsn" to a namelist option, set to "true" by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
EricJames-NOAA committed Nov 24, 2023
1 parent af2ce53 commit dd34967
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 3 additions & 4 deletions sorc/ncep_post.fd/CALVIS_GSD.f
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ SUBROUTINE CALVIS_GSD(CZEN,VIS)
use vrbls2d, only: sno, si, ustar
use vrbls3d, only: qqw, qqi, qqs, qqr, qqg, t, pmid, q, u, v, extcof55, aextc55
use params_mod, only: h1, d608, rd, g
use ctlblk_mod, only: jm, im, jsta_2l, jend_2u, lm, modelname, spval,&
use ctlblk_mod, only: jm, im, jsta_2l, jend_2u, lm, modelname, spval, method_blsn,&
ista_2l, iend_2u
implicit none
integer :: j, i, k, ll
integer :: method, method_blsn
integer :: method
real :: tx, pol, esx, es, e
REAL VIS(ista_2l:iend_2u,jsta_2l:jend_2u)
REAL RHB(ista_2l:iend_2u,jsta_2l:jend_2u,LM)
Expand Down Expand Up @@ -142,7 +142,6 @@ SUBROUTINE CALVIS_GSD(CZEN,VIS)
! Aerosol method (2),
! Smoke added to RH method for clear air (3)
! 3 - option to add reducted visibility from smoke-based aerosols.
method_blsn = 1 ! 1 for 'on', 0 for 'off'
CELKEL = 273.15
TICE = CELKEL-10.
Expand Down Expand Up @@ -355,7 +354,7 @@ SUBROUTINE CALVIS_GSD(CZEN,VIS)
! Addition of attenuation from aerosols if option selected
if(method == 2 .or. method == 3)then ! aerosol method
BETAV = BETAV + aextc55(i,j,lm)*1000.
if(method_blsn .eq. 1) then ! BLSN method, updated 8 August 2022 by Tim Corrie
if(method_blsn) then ! BLSN method, updated 8 August 2022 by Tim Corrie
BETAV = BETAV + BETABLSN
endif
endif
Expand Down
2 changes: 2 additions & 0 deletions sorc/ncep_post.fd/CTLBLK.f
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
!> 2023-04-04 | Li(Kate Zhang) | Add namelist optoin for CCPP-Chem (UFS-Chem) and 2D diag. output (d2d_chem) for GEFS-Aerosols and CCPP-Chem model.
!> 2023-04-17 | Eric James | Adding 160 and 320 m above ground to HTFD for RRFS output.
!> 2023-08-16 | Yali Mao | Add gtg_on logical option
!> 2023-11-24 | Eric James | Add method_blsn logical option
!-----------------------------------------------------------------------
!> @defgroup CTLBLK_mod Sets default parameters that are used throughout the UPP code
!-----------------------------------------------------------------------
Expand Down Expand Up @@ -73,6 +74,7 @@ module CTLBLK_mod
logical :: aqf_on !< Turn on Air Quality Forecasting (CMAQ-based).
logical :: slrutah_on !< Calculate snow to liquid ratio (SLR) using method from University of Utah.
logical :: gtg_on !< Turn on GTG (Graphical Turbulence Guidance)
logical :: method_blsn !< Turn on blowing snow effect on visibility diagnostic
!
logical :: SIGMA !< No longer used/supported.
logical :: RUN !< No longer used/supported.
Expand Down
5 changes: 3 additions & 2 deletions sorc/ncep_post.fd/WRFPOST.f
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ PROGRAM WRFPOST
mdl2agl_tim, mdl2std_tim, mdl2thandpv_tim, calrad_wcloud_tim,nasa_on,gccpp_on, &
fixed_tim, time_output, imin, surfce2_tim, komax, ivegsrc, d3d_on, gocart_on,rdaod, &
readxml_tim, spval, fullmodelname, submodelname, hyb_sigp, filenameflat, aqf_on,numx, &
run_ifi_tim, slrutah_on, d2d_chem, gtg_on
run_ifi_tim, slrutah_on, d2d_chem, gtg_on, method_blsn
use grib2_module, only: gribit2,num_pset,nrecout,first_grbtbl,grib_info_finalize
use upp_ifi_mod, only: write_ifi_debug_files
!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand All @@ -153,7 +153,7 @@ PROGRAM WRFPOST
!
integer :: kpo,kth,kpv
real,dimension(komax) :: po,th,pv
namelist/nampgb/kpo,po,kth,th,kpv,pv,fileNameAER,d3d_on,gocart_on,gccpp_on, nasa_on,gtg_on,popascal &
namelist/nampgb/kpo,po,kth,th,kpv,pv,fileNameAER,d3d_on,gocart_on,gccpp_on, nasa_on,gtg_on,method_blsn,popascal &
,hyb_sigp,rdaod,d2d_chem, aqf_on,slrutah_on, vtimeunits,numx,write_ifi_debug_files
integer :: itag_ierr
namelist/model_inputs/fileName,IOFORM,grib,DateStr,MODELNAME,SUBMODELNAME &
Expand Down Expand Up @@ -261,6 +261,7 @@ PROGRAM WRFPOST
aqf_on = .false.
slrutah_on = .false.
gtg_on = .false.
method_blsn = .true.
popascal = .false.
fileNameAER = ''
rdaod = .false.
Expand Down

0 comments on commit dd34967

Please sign in to comment.