!namelist
!############################### Change Log ##################################
! 2.2.0.0
!
!  : enver
!  : 
!  :
!
!
!#############################################################################
!
! trunc    =021,vert     =09,dt       =1800.0,
! trunc    =062,vert     =28,dt       =1200.0,
! trunc    =126,vert     =28,dt       =600.0
! trunc    =170,vert     =42,dt       =450.0
! trunc    =213,vert     =42,dt       =360.0
! trunc    =254,vert     =64,dt       =300.0
! trunc    =341,vert     =64,dt       =200.0  !!!teste=225.0 
!############################################################################
&MODEL_RES
 trunc    =62,                   !TRC   : three-digit triangular truncation
 vert     =42,   !28                !LV    : two-digit number of vertical sigma-layers
 dt       =1200, !1200,  !1200               !      : delta t
 IDATEI   = 00,15, 02, 2014,!LABELI: initial forecasting label
 !IDATEW   = 12,26, 03, 2014,!LABELC: final forecasting label for cold
 !IDATEF   = 12,26, 03, 2014,!LABELF: final forecasting label for warm  
 IDATEW   = 12, 15 , 03, 2014,!LABELC: final forecasting label for cold
 IDATEF   = 12, 15 , 03, 2014,!LABELF: final forecasting label for warm
                           !            if cold, then LABELF=LABELC
 NMSST          ='sstaoi',       !NMSST : sst file name
 DHFCT          = 1,             !DHFCT : interval in hours to output diagnostics,
                           !            equal zero to use default list
 DHRES          = 48,            !DHRES : interval in hours to output restart,
                           !            equal zero to use default list
 DHDHN          = 48,            !DHDHN : interval in hours to output DHN diagnostic
 NHDHN          = 48,            !NHDHN : time in hours to stop DHN diagnostics,
                           !            equal zero to not execute DHN diagnostics
 DHEXT          = 0,             !DHEXT : interval in hours to output extra diagnostics
 NHEXT          = 0,             !NHEXT : time in hours to stop extra diagnostics,
                           !            equal zero to not execute extra diagnostics  
 DOGRH          = .FALSE.,       !DOGRH : logical (T or F) to do grid history for
                           !            selected points
 DOPRC          = .FALSE.,       !DOPRC : logical (T or F) to do time step output
                           !            of global precipitation
 PREFX          ='KTW',          !PREFX : preffix for name of output files
 PREFY          ='NMC',          !PREFY : preffix for name of input files
 TABLE    = 'p',           !TABLE : indicator of the desire table:
                           !                     n => for desirtable (default)
                           !                     p => for desirtable.pnt
                           !                     c => for desirtable.clm
                           !                      LABELx: hhddmmyyyy
                           !                              yyyy = four digit year
                           !                                mm = two digit month
                           !                                dd = two digit day
                           !                                hh = two digit hour
                           !NMSST
                           !sstaoi : for optimum interpolated SST
                           !             climatology (original 1x1 degree)
                           !sstanp : for optimum interpolated SST
                           !             climatology plus persisted SST anomaly
                           !sstwkl : for weekly run mean of SST for
                           !             the week finished at initial day
                           !             minus one (original 1x1 degree)
                           !sstwkd : for weekly run mean of SST
                           !             direct access file (original 1x1 degree)
                           !sstmtd : for monthly run mean of SST
                           !             direct access file (original 1x1 degree)
 path_in = '/cygdrive/d/pgmet_2022/MET-756-4/Aula_23_08_12_2022_Avaliacao/BAM1D_avaliacao/run/../model/datain/',
 dirfNameOutput = '/cygdrive/d/pgmet_2022/MET-756-4/Aula_23_08_12_2022_Avaliacao/BAM1D_avaliacao/run/../model/dataout/Exp_2AMZ/',
/
&MODEL_1D
 longitude          = 300.01,  !   0  -> 360
 latitude           = -3.15,   ! -90  ->  90
 !altitude           = 320.0
/
&MODEL_OROG
 orog               = 1.0,   !
/ 
&MODEL_VEG
 sibmask            =   1, !Toga= 1,     ! 0->13     
/
&MODEL_SBC
 alb           =  0.2,      0.3,      0.6,      0.7,      0.6,      0.6,
                  0.6,      0.6,      0.6,      0.6,      0.6,      0.6
                  
 snw           =  0.0,      0.0,      0.0,      0.0,      0.0,      0.0,
                  0.0,      0.0,      0.0,      0.0,      0.0,      0.0
                  
 slm           =150.0,    150.0,    150.0,    150.0,     120.0,     120.0,
                120.0,    120.0,    120.0,    120.0,     120.0,     120.0
                    
 sst           =300.0,    299.0,    298.0,    297.0,    296.0,    295.0,
                296.0,    297.0,    298.0,    299.0,    300.0,    300.0
/
&MODEL_soil                
 tsoil1          =300.0,
 tsoil2          =300.0,
 tsoil3          =300.0,
 zorlsoil        =  10.,
/
&MODEL_IN
 LS_EFFECT          =.TRUE.,     !=.TRUE., large scale effect
 WriteFaked         =.TRUE.,     ! write faked output file (proper for CPTEC post-processing)
 slagr              =.FALSE.,    ! Semi-Lagrangian option (.FALSE. for Eulerian Model)
 slhum              =.TRUE.,     ! Humidit should be lagrangian  ? (Eulerian Model)
 SL_twotime_scheme  =.FALSE.,    ! Two-time level SL scheme
 nlnminit           =.TRUE.,     ! do normal mode non linear initialization
 diabatic           =.TRUE.,     ! diabatic or not initialization (.FALSE. if nlnminit=.FALSE.)
 eigeninit          =.TRUE.,     ! eigenInit  --> .FALSE.
 rsettov            =.TRUE.,     ! rsettov    --> .TRUE.
 intcosz            =.FALSE.,    ! ntcosz     --> .TRUE.
 OPTUMID            ='',         !'RELATIVA', ! ntcosz     --> .TRUE.
 OPTVELO            ='',         !'DIR',      ! ntcosz     --> .TRUE.
 Model1D            =.TRUE.,     !.FALSE.,    ! .TRUE. when using 1D Model.
 mgiven             =.FALSE.,    ! mgiven       --> .FALSE.
 gaussgiven         =.FALSE.,    ! gaussgiven       --> .FALSE.
 reducedGrid        =.TRUE.,     ! reduced    --> .TRUE. 
 linearGrid         =.FALSE.,    ! lineargrid --> .FALSE.
 GenRestFiles       =.FALSE.,    ! .TRUE. to generate restart files.
 rmRestFiles        =.TRUE.,     ! .TRUE. to remove restart files after read them.
 MasCon             =.FALSE.,    ! .TRUE. to do Mass Conservation: ln(ps)
 MasCon_ps          =.FALSE.,    ! .TRUE. to do Mass Conservation: ps
 nscalars           = 0,         ! Number of passive variables
 tamBlock           = 528,       ! quantidade de fft enviadas por bloco   
 ibdim_size         = 6,         ! tamanho de bloco basico (ibmax)     
 givenfouriergroups =.FALSE.,    ! False if processor division should be automatic
 nproc_vert         = 28,        ! Number of processors to be used in the vertical 
/
&PHYSPROC
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!     ixxxx=yes  the physical process included
!     ixxxx=no   the physical process excluded
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 ISWRAD  = 'CRDTF',    !CRD'     ! iswrad = NON: don't do sw radiation, LCH: lacis & hansen
                       !          CRD: clirad                UKM: ukmet office
                       !          RRTMG: cptec               CRDTF: clirad tarasova
 ILWRAD  = 'CRDTF',    !HRS'       ! ilwrad = NON: don't do lwradiation, HRS: Harshvardhan
                       !          CRD: clirad                UKM: ukmet office
                       !          RRTMG: cptec               CRDTF: clirad tarasova
                       !
 ICCON   = 'ARA',      ! iccon=KUO:cumulus convection(kuo)
                       ! iccon=ZMC:cumulus convection(Zhang-McFarlane)
                       ! iccon=NON:without cumulus convection
                       ! iccon=ARA ! SAS
                       ! icccon=GDM
                       !
 ISCON   = 'TIED',     ! iscon=TIED:shallow convection this process follows cumulus convection (tiedke)
                       ! iscon=UW
                       ! iscon=MFLX:shallow convection
                       ! iccon=NON:without Shallow
                       !
 ILCON   = 'HWRF',     ! !HUMO',  ! ilcon=yes:large scale condensation
                       ! 'LSC'  LSCA
                       ! 'HGFS' FERREIR
                       ! 'HUMO' MORRISON
                       ! 'HWRF' THOMPSON
 IQDIF   = 'YES' ,     ! iqdif = yes:horizontal diffusion of moisture
 IGWD    = 'YES' ,     ! igwd  = NON:gravity wave
                       ! igwd  = YES:gravity wave
                       ! igwd  = CAM:gravity wave
                       ! igwd  = USS:gravity wave
                       ! igwd  = GMB:gravity wave
 ISIMP   = 'NO' ,      ! isimp = yes:simplified physics version. 
 ENHDIF  = 'YES' ,     ! enhdif=yes: enhance diffusion on higher levels )
                       ! specific for clirad
 ASOLC   = 0.22 ,      ! continental: total column aerosol in the first 2km
 ASOLM   = 0.14 ,      ! maritime:    total column aerosol in the first 2km
 clouds_opt =0,        ! clouds_opt=0     ! cloud scheme =0 (old) =1 (layrson)
 CRDCLD  = 6, !4       ! IF clouds_opt=0 => 1-old 2 old, 3-4CCM3(deleted), 5-cam5, 6-gfs or(6 RRTMG)
                       ! ELSE  clouds_opt=1 => 6-gfs or(6 RRTMG)
!--------------
! GRE CPTEC
!---------------
 grepar1 = 1,   ! integer:0 ensemble1 GRE 4 OMG7 KUO10 Chappel13 ARA24 ensemble2
!-------------------
!  GDM CPTEC
!------------------
 bampar1= 1,     ! 1GRE  2ZHANG
 bampar2= 3,     ! 1(GD),  2(ECMWF), 3(CPTEC)
 bampar3 =0.1, !!!factor para ECMWF!
 bampar4 =1.0, !!1 factor para CPTEC !
!-------------------
! SHALL
!------------------
 shallpar1=1,  ! 1-after deep  2-after MIC
 shallpar2=1,  ! no used     
!-------------------
 iglsm_w = 0  ,         !
!-------------------------
 thermcell=1,           !thermas
                        !
 atmpbl  = 4  ,         ! 1 pbl Mellor Yamada 2.0
                        ! 2 pbl Mellor Yamada 2.5
                        ! 3 pbl Hostlag Boville 1992
                        ! 4 pbl Park
 PBLEntrain = .FALSE.,  !Exp.TRUE., !.FALSE.,  !
 schemes    = 3,        ! 1 ssib; 2 sib2; 3 ibis
 OCFLUX     = 'WGFS',   ! OCFLUX  = 'COLA',
                        ! OCFLUX  = 'UKME',
                        ! OCFLUX  = 'WGFS',
 omlmodel   = .FALSE.,  !.FALSE. ,  !
 oml_hml0   = 80.,      !60. ,     !
 Wgh1       = 0.0,      ! pbl Hostlag Boville
 Wgh2       = 1.0 ,     ! pbl Mellor Yamada 2.0
 Wgh3       = 0.0,      ! pbl Mellor Yamada 2.5
 ktke       = 1,        ! 1 HBO  2 MY2.0  3 MY2.5
 topog1d    = 92.0      !Topografia de Manaus 92m
 EXP1D      = 'GOAMZ'   ! 'BOMEX'  !BOMEX, TOGA, DYNAM, ARM97, GOAMZ 
/
&PHYSCS
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!   the following are vertical resolution dependent cloud parameters
!   used in cldgen.  correct settings for these parameters need to be
!   determined experimentally.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
 mxrdcc  = .true.,   ! use maximum random converage for radiative conv. clouds
 lcnvl   = 2,        ! the lowest layer index where non-convective clouds can
                     ! occur (ben says this should be 2 or more)
 lthncl  = 80,       ! minimum depth in mb of non-zero low level cloud
 rccmbl  = 3.0,      ! radiative convective cloud minimum base layer index
 swint   = 3600.000000, ! short wave radiation call interval in hours swint=1.0e0
 trint   = 3600.000000, ! ir subr. call interval in hours  trint=3.0e0
                     ! long  wave radiation call interval in hours
                     !   physical constants for simple physics options
freqconv = 120.00   !
 icld    = 1,        !
 inalb   = 2,        !
 mxiter  = 200,      !
 co2val  = 370.0,    ! co2val is wgne standard value in ppm 
                     ! co2val=345.0 old value 
                     ! co2val=370.0 new value
 STHICK  = 0.65e0,   ! sthick; upper limit for originating air for lcl.
                     ! replaces kthick.
 SACUM   = 0.46e0,   ! sacum; top level for integrated moisture 
                     ! convergence test. replaces
                     ! kacum
 ACUM0   = -2.0e-8,  ! acum0; threshold moisture convergence such that 
                     ! integrated moisture
                     ! convergence > - acum0 for convection to occur.
 TBASE   = 273.15e00,!
 MLRG    = 0,        ! mlrg=1 ;output of pre-adjusted & post adjusted 
                     ! temp. & s.h. in lrgscl
 IS      = 1,        ! is  ;start i-point
 KI      = 1         ! ki  ; lowest level from which parcels can be 
                     ! lifted to find lcl
 cflric  = 0.10      ! parameter used by relaxed arakawa-schubert
 /

&COMCON
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!     files
!     ifxxx=0    xxx is not processed
!     ifxxx=1    xxx is set to month=idatec(2) in the first call,
!                but not processed from the subsequent calls.
!                ifxxx is set to zero after interpolation
!     ifxxx=2    xxx is interpolated to current day and time every fint
!                hours synchronized to 00z regardless of initial time.
!                interpolation is continuous (every time step) if fint<0.
!     ifxxx=3    xxx is interpolated to current day and time when ifday=0
!                and tod=0.0 but not processed otherwise
!                ( appropriate only when xxx is predicted )
!
!                the following are for sst only (fint applies as in
!                ifxxx=2):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 initlz  = 2,      ! nitlz =2 diabatic normal mode initialization
                   !         =1 diabatic with no normal mode initialization
                   !         =0 adiabatic with no normal mode initialization
                   !         <0 same as >0 with sib variables read in instead of 
                   !            initialized
 nstep   = 1,      ! number of steps in getting diabatic heating rate
                   ! in diaten if nstep=1,nstep is set equal to 7 in Model.    
 fint    = 6,      ! surface boundary calling interval in hours
 intsst  = -1,     ! sst data set interval in days (if > 0)
                   ! sst data set is in calendar months if < 0.
 ndord   = 4,      ! order (even) of horizontal diffusion del operator
 filta   = 0.20,    !0.20 !0.15e0, !0.92e0, ! time filter constant 0.92 orig
 percut  = 27502., ! percut   cut off period in sec  in nlnmi
                   ! modes are to be read.
 varcut  = 1.6e5,  ! cut off height variance in m**2 for gravity wave drag
 ifsst   = -1,     ! ifsst=4  sst is linearly interpolated from continuous 
                   !              direct access data set to current day and 
                   !              time.data set is assumed to be spaced every 
                   !              intsst days or every calendar month is 
                   !              intsst < 0.
                   ! ifsst=5  sst is expanded from piecewise cubic 
                   !              coefficients in        direct access data set to 
                   !              current day and time. data set
                   !                is assumed to be spaced every intsst days.
forcings_weight_w=1.0
forcings_weight_d=1.0
forcings_weight_t=1.0
forcings_weight_m=1.0
 ifsnw    = 3,
 ifalb    = 0,
 ifslm    = 3,  
 ifozone  = 0,     !"OZONE field is constant"
 iftracer = 0,     !

 allghf   = .false.,! it is possible to select all available grid history
                   ! fields:  
                   !
                   ! allghf=.TRUE.-  all available fields are required
 dpercu  = 27502.
 vcrit   = 85.0,   ! critical velocity (m/s) at which damping kicks in
                   ! (for troposphere)
 alpha   = 2.50,
 dodyn   = .false.,! logical flag to output
                   ! first level of divergence, vorticity,
                   ! virtual temperature, specific humidity
                   ! and log of surface pressure
                   ! at every time step
 intfor  =10800., !21600., ! 6*3600.,  ! forcing data set interval in seconds (if intfor > 0.0)
                   ! forcing data set is fixed to only one time (if intfor < 0.0).
 iffor = 0.,       ! iffor=-1.     : Then intfor=-1.0 and forcing is not interpolated in time. 
                   !                The same initial value is used for the whole
                   !                run (keep constant)
                   ! iffor= 0.     :  forcing is linearly interpolated to the
                   !                current day and time.
                   !                Forcing data is assumed to be spaced every
                   !                'intfor' seconds.
/
