!!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
!! NEMO/OPA  :  1 - run manager      (namrun)
!! namelists    2 - Domain           (namzgr, namzgr_sco, namdom, namtsd)
!!              3 - Surface boundary (namsbc, namsbc_ana, namsbc_flx, namsbc_clio, namsbc_core
!!                                    namsbc_cpl, namtra_qsr, namsbc_rnf, 
!!                                    namsbc_apr, namsbc_ssr, namsbc_alb,
!!                                    namsbc_prt)
!!              4 - lateral boundary (namlbc, namcla, namobc, namagrif, nambdy, nambdy_tide)
!!              5 - bottom  boundary (nambfr, nambbc, nambbl)
!!              6 - Tracer           (nameos, namtra_adv, namtra_ldf, namtra_dmp)
!!              7 - dynamics         (namdyn_adv, namdyn_vor, namdyn_hpg, namdyn_spg, namdyn_ldf)
!!              8 - Verical physics  (namzdf, namzdf_ric, namzdf_tke, namzdf_kpp, namzdf_ddm, namzdf_tmx)
!!              9 - diagnostics      (namnc4, namtrd, namspr, namflo, namptr, namhsb)
!!             10 - miscellaneous    (namsol, nammpp, nammpp_dyndist, namctl)
!!             11 - Obs & Assim      (namobs, nam_asminc)
!!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

!!======================================================================
!!                   ***  Run management namelists  ***
!!======================================================================
!!   namrun        parameters of the run
!!======================================================================
!
!-----------------------------------------------------------------------
&namrun        !   parameters of the run
!-----------------------------------------------------------------------
   nn_no       =   0   !  job number
   cn_exp      = "hz9n" !  experience name 
   nn_it000    =  1  !  first time step
   nn_itend    =  144  !  last  time step (std 5475)
   nn_date0    =  20200120  !  initial calendar date yymmdd (used if nn_rstctl=1)
   nn_time0    =  00  !  initial calendar time in hours
   nn_itfile   =  -1
   nn_leapy    =       1   !  Leap year calendar (1) or not (0)
   ln_rstart   = .true.  !  start from rest (F) or from a restart file (T)
   nn_rstctl   =       0       !  restart control = 0 nn_it000 is not compared to the restart file value
                               !                  = 1 use nn_date0 in namelist (not the value in the restart file)
                               !                  = 2 calendar parameters read in the restart file
   cn_ocerst_in  = "restart"   !  suffix of ocean restart name (input)
   cn_ocerst_out = "restart"   !  suffix of ocean restart name (output)
   nn_istate   =       0   !  output the initial state (1) or not (0)
   nn_stock    =  144  !  frequency of creation of a restart file (modulo referenced to 1)
   nn_write    =  72 !  frequency of write in the output file   (modulo referenced to nn_it000)
   ln_dimgnnn  = .false.   !  DIMG file format: 1 file for all processors (F) or by processor (T)
   ln_mskland  = .false.   !  mask land points in NetCDF outputs (costly: + ~15%)
   ln_clobber  = .true.    !  clobber (overwrite) an existing file
   nn_chunksz  = 4194304   !  chunksize (bytes) for NetCDF file
   nn_slimrst  = 0 ! option of slim restart output (0:full; 1:nowfields+tke+sbc; 2:nowfields+sbc+en; 3:nowfields only)
   nn_slimrstin  = 1 ! Force slim restart on input
   ln_rsttime  = .true. ! Use time in restart output names rather than time steps
   ln_writerst   = .true.
   ln_usetime    = .false.
   cn_ocerst_out_path="/ec/fws5/sb/work/rd/paxp/hz9n/LWDA/2020012000/gfc/"
   nn_itout      = 1
   ln_rcf_read   = .false.
   ln_rcf_write  = .false.
/

!!======================================================================
!!                      ***  Domain namelists  ***
!!======================================================================
!!   namzgr       vertical coordinate
!!   namzgr_sco   s-coordinate or hybrid z-s-coordinate
!!   namdom       space and time domain (bathymetry, mesh, timestep)
!!   namtsd       data: temperature & salinity                         
!!======================================================================
!
!-----------------------------------------------------------------------
&namzgr        !   vertical coordinate
!-----------------------------------------------------------------------
   ln_zco      = .false.   !  z-coordinate - full    steps   (T/F)      ("key_zco" may also be defined)
   ln_zps      = .true.    !  z-coordinate - partial steps   (T/F)
   ln_sco      = .false.   !  s- or hybrid z-s-coordinate    (T/F)
/
!-----------------------------------------------------------------------
&namzgr_sco    !   s-coordinate or hybrid z-s-coordinate
!-----------------------------------------------------------------------
   rn_sbot_min =  300.     !  minimum depth of s-bottom surface (>0) (m)
   rn_sbot_max = 5250.     !  maximum depth of s-bottom surface (= ocean depth) (>0) (m)
   rn_theta    =    6.0    !  surface control parameter (0<=rn_theta<=20)
   rn_thetb    =    0.75   !  bottom control parameter  (0<=rn_thetb<= 1)
   rn_rmax     =    0.15   !  maximum cut-off r-value allowed (0<rn_max<1)
   ln_s_sigma  = .false.   !  hybrid s-sigma coordinates
   rn_bb       =    0.8    !  stretching with s-sigma
   rn_hc       =  150.0    !  critical depth with s-sigma 
/
!-----------------------------------------------------------------------
&namdom        !   space and time domain (bathymetry, mesh, timestep)
!-----------------------------------------------------------------------
   nn_bathy    =    1      !  compute (=0) or read (=1) the bathymetry file
   nn_closea    =   0      !  remove (=0) or keep (=1) closed seas and lakes (ORCA)
   nn_msh      =    0      !  create (=1) a mesh file or not (=0)
   rn_hmin     =   -3.      !  min depth of the ocean (>0) or min number of ocean level (<0)
   rn_e3zps_min=  25.      !  partial step thickness is set larger than the minimum of
   rn_e3zps_rat=    0.2    !  rn_e3zps_min and rn_e3zps_rat*e3t, with 0<rn_e3zps_rat<1
                           !
   rn_rdt      = 1200 !  time step for the dynamics (and tracer if nn_acc=0)
   nn_baro     =   64      !  number of barotropic time step            ("key_dynspg_ts")
   rn_atfp     =    0.1    !  asselin time filter parameter
   nn_acc      =    0      !  acceleration of convergence : =1      used, rdt < rdttra(k)
                                 !                          =0, not used, rdt = rdttra
   rn_rdtmin   =  1440.          !  minimum time step on tracers (used if nn_acc=1)
   rn_rdtmax   =  1440.          !  maximum time step on tracers (used if nn_acc=1)
   rn_rdth     =  800.           !  depth variation of tracer time step  (used if nn_acc=1)
   jphgr_msh   =       0               !  type of horizontal mesh
   ppglam0     =  999999.0             !  longitude of first raw and column T-point (jphgr_msh = 1)
   ppgphi0     =  999999.0             ! latitude  of first raw and column T-point (jphgr_msh = 1)
   ppe1_deg    =  999999.0             !  zonal      grid-spacing (degrees)
   ppe2_deg    =  999999.0             !  meridional grid-spacing (degrees)
   ppe1_m      =  999999.0             !  zonal      grid-spacing (degrees)
   ppe2_m      =  999999.0             !  meridional grid-spacing (degrees)
   ppsur       =  -3958.951371276829   !  ORCA r4, r2 and r05 coefficients
   ppa0        =   103.9530096000000   ! (default coefficients)
   ppa1        =   2.415951269000000   !
   ppkth       =   15.35101370000000   !
   ppacr       =       7.0             !
   ppdzmin     =  999999.              !  Minimum vertical spacing
   pphmax      =  999999.              !  Maximum depth
   ldbletanh   =  .TRUE.               !  Use/do not use double tanf function for vertical coordinates
   ppa2        =  100.7609285000000    !  Double tanh function parameters
   ppkth2      =  48.02989372000000    !
   ppacr2      =   13.00000000000      !
/
!-----------------------------------------------------------------------
&namtsd    !   data : Temperature  & Salinity                           
!-----------------------------------------------------------------------
!          ! file name ! frequency (hours)    ! variable ! time interp. ! clim  !'yearly' or ! weights  ! rotation !
!          !           !  (if <0  months)     !   name   !  (logical)   ! (T/F) ! 'monthly'  ! filename ! pairing  !
   sn_tem  = 'data_1m_potential_temperature_nomask',-1,'votemper',.true.,.true.,'yearly','',''
   sn_sal  = 'data_1m_salinity_nomask',-1,'vosaline',.true.,.true.,'yearly', '',''
   !
   cn_dir        = './'     !  root directory for the location of the runoff files
   ln_tsd_init   = .true.   !  Initialisation of ocean T & S with T &S input data (T) or not (F)
   ln_tsd_tradmp = .true.   !  damping of ocean T & S toward T &S input data (T) or not (F)
/


!!======================================================================
!!            ***  Surface Boundary Condition namelists  ***
!!======================================================================
!!   namsbc          surface boundary condition
!!   namsbc_ana      analytical         formulation
!!   namsbc_flx      flux               formulation
!!   namsbc_clio     CLIO bulk formulae formulation
!!   namsbc_core     CORE bulk formulae formulation
!!   namsbc_mfs      MFS  bulk formulae formulation
!!   namsbc_cpl      CouPLed            formulation                     ("key_coupled")
!!   namtra_qsr      penetrative solar radiation
!!   namsbc_rnf      river runoffs
!!   namsbc_apr      Atmospheric Pressure
!!   namsbc_ssr      sea surface restoring term (for T and/or S)
!!   namsbc_alb      albedo parameters
!!   namsbc_prt      perturbation       options
!!======================================================================
!
!-----------------------------------------------------------------------
&namsbc        !   Surface Boundary Condition (surface module)
!-----------------------------------------------------------------------
   nn_fsbc     = 3   !  frequency of surface boundary condition computation 
                           !     (also = the frequency of sea-ice model call)
   ln_ana      = .false.   !  analytical formulation                    (T => fill namsbc_ana ) 
   ln_flx      = .false. !  flux formulation                          (T => fill namsbc_flx )
   ln_blk_clio = .false.   !  CLIO bulk formulation                     (T => fill namsbc_clio) 
   ln_blk_core = .false. !  CORE bulk formulation                     (T => fill namsbc_core) 
   ln_cpl      = .false.   !  Coupled formulation                       (T => fill namsbc_cpl )
   ln_apr_dyn  = .false.   !  Patm gradient added in ocean & ice Eqs.   (T => fill namsbc_apr )
   nn_ice      = 2 !  =0 no ice boundary condition   ,
                             !  =1 use observed ice-cover      ,
                             !  =2 ice-model used                         ("key_lim3" or "key_lim2")
   ln_dm2dc    = .false.   !  daily mean to diurnal cycle on short wave
   ln_rnf      = .true.    !  runoffs                                   (T => fill namsbc_rnf)
   ln_ssr      = .true.    !  Sea Surface Restoring on T and/or S       (T => fill namsbc_ssr)
   nn_fwb      = 0   !  FreshWater Budget: =0 unchecked 
                           !     =1 global mean of e-p-r set to zero at each time step 
                           !     =2 annual global mean of e-p-r set to zero
                           !     =3 global emp set to zero and spread out over erp area
                           !     =4 variable time global mean of e-p-r set to zero (fill namsbc_fwb)
   nn_hbp       = 1
   ln_cdgw     = false     !   Neutral drag coefficient read from wave model
   ln_stcor    = .true.    !   Stokes drift read from wave model
   ln_wavetke  = .true.  !   TKE wave parameters read from wave model
   ln_tauoc    = .true.    !   Wave-modified stress from wave model
   ln_wbrsource = false !   TKE from wave breaking as source function
   ln_pert     =  false !   Option to read surf pert
   ln_wicestrn = false
/
!-----------------------------------------------------------------------
&namsbc_ana    !   analytical surface boundary condition
!-----------------------------------------------------------------------
   nn_tau000   =   0       !  gently increase the stress over the first ntau_rst time-steps
   rn_utau0    =   0.5     !  uniform value for the i-stress
   rn_vtau0    =   0.e0    !  uniform value for the j-stress
   rn_qns0     =   0.e0    !  uniform value for the total heat flux
   rn_qsr0     =   0.e0    !  uniform value for the solar radiation
   rn_emp0     =   0.e0    !  uniform value for the freswater budget (E-P)
/
!-----------------------------------------------------------------------
&namsbc_flx    !   surface boundary condition : flux formulation
!-----------------------------------------------------------------------
!              !  file name  ! frequency (hours) ! variable  ! time interp. !  clim  ! 'yearly'/ ! weights  ! rotation !
!              !             !  (if <0  months)  !   name    !   (logical)  !  (T/F) ! 'monthly' ! filename ! pairing  !
   sn_utau     = 'utau'      ,        24         , 'utau'    , .false.      , .false., 'monthly'  , ''       , ''
   sn_vtau     = 'vtau'      ,        24         , 'vtau'    , .false.      , .false., 'monthly'  , ''       , ''
   sn_qtot     = 'flx'       ,        24         , 'qtot'    , .false.      , .false., 'monthly'  , ''       , ''
   sn_qsr      = 'flx'       ,        24         , 'qsr'     , .false.      , .false., 'monthly'  , ''       , ''
   sn_emp      = 'flx'       ,        24         , 'emp'     , .false.      , .false., 'monthly'  , ''       , ''

   cn_dir      = './'      !  root directory for the location of the flux files
/      
!-----------------------------------------------------------------------
&namsbc_iif    !   surface boundary condition for prescribed ice
!-----------------------------------------------------------------------
!              !      file name     ! frequency (hours) !  variable  ! time interpol. !  clim   ! 'yearly' or !
!              !                    !  (if <0  months)  !    name    !    (logical)   !  (T/F)  !  'monthly'  !
   sn_ice     =      'ice_cover'        ,        24        ,    'ice_cov'  ,     .false.    , .false. ,   'monthly', '', ''
   cn_dir     =  './'     !   root for location of ice files
   dtice      =  1.       !   time scale for relaxation to sea-ice
   nn_ice_rel =  0  !   Use pseudo-ice treatment
/
!-----------------------------------------------------------------------
&namsbc_clio   !   namsbc_clio  CLIO bulk formulea
!-----------------------------------------------------------------------
!              !  file name  ! frequency (hours) ! variable  ! time interp. !  clim  ! 'yearly'/ ! weights  ! rotation !
!              !             !  (if <0  months)  !   name    !   (logical)  !  (T/F) ! 'monthly' ! filename ! pairing  !
   sn_utau     = 'taux_1m'   ,       -1          , 'sozotaux',   .true.     , .true. , 'yearly'  , ''       , ''
   sn_vtau     = 'tauy_1m'   ,       -1          , 'sometauy',   .true.     , .true. , 'yearly'  , ''       , ''
   sn_wndm     = 'flx'       ,       -1          , 'socliowi',   .true.     , .true. , 'yearly'  , ''       , ''
   sn_tair     = 'flx'       ,       -1          , 'socliot2',   .true.     , .true. , 'yearly'  , ''       , ''
   sn_humi     = 'flx'       ,       -1          , 'socliohu',   .true.     , .true. , 'yearly'  , ''       , ''
   sn_ccov     = 'flx'       ,       -1          , 'socliocl',   .false.    , .true. , 'yearly'  , ''       , ''
   sn_prec     = 'flx'       ,       -1          , 'socliopl',   .false.    , .true. , 'yearly'  , ''       , ''

   cn_dir      = './'      !  root directory for the location of the bulk files are
/
!-----------------------------------------------------------------------
&namsbc_core   !   namsbc_core  CORE bulk formulea
!-----------------------------------------------------------------------
!              !  file name       ! frequency (hours) ! variable  ! time interp. !  clim  ! 'yearly'/   ! weights  ! rotation !
!              !                  !  (if <0  months)  !   name    !   (logical)  !  (T/F) ! 'monthly'   ! filename ! pairing  !
   sn_wndi     = 'u10'            ,    6    , 'u10'     ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_wndj     = 'v10'            ,    6    , 'v10'     ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_qsr      = 'accum'          ,    24    , 'swdn'    ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_qlw      = 'accum'          ,    24    , 'lwdn'    ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_tair     = 'qtml'           ,    6    , 't10'     ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_humi     = 'qtml'           ,    6    , 'q10'     ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_prec     = 'accum'          ,    24    , 'precip'  ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_snow     = 'accum'          ,    24    , 'snow'    ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_tdif     = 'taudif_core'    ,        24         , 'taudif'  ,   .false.    , .true.  , 'yearly'   , ''       , ''
   sn_ccov     = 'tcc',  6    , 'tcc',   .false.    , .false. , 'monthly'  , ''       , ''

   cn_dir      = './'      !  root directory for the location of the bulk files
   ln_2m       = .false.   !  air temperature and humidity referenced at 2m (T) instead 10m (F)
   ln_taudif   = .false.   !  HF tau contribution: use "mean of stress module - module of the mean stress" data
   ln_cdec  = .false.   ! Switch to ECMWF drag  
   rn_pfac     = 1.        !  multiplicative factor for precipitation (total & snow)
   ln_cldcov   = .false. 
   rn_rrelwind = 1.0
/
!-----------------------------------------------------------------------
&namsbc_cpl    !   coupled ocean/atmosphere model                       ("key_coupled")
!-----------------------------------------------------------------------
!                    !     description       !  multiple  !    vector   !      vector          ! vector !
!                    !                       ! categories !  reference  !    orientation       ! grids  !
! send
sn_snd_temp   =       'weighted oce and ice' ,    'no'    ,     ''      ,         ''           ,   ''    
sn_snd_alb    =       'weighted ice'         ,    'no'    ,     ''      ,         ''           ,   ''    
sn_snd_thick  =       'none'                 ,    'no'   ,     ''      ,         ''           ,   ''    
sn_snd_crt    =       'none'                 ,    'no'    , 'spherical' , 'eastward-northward' ,  'T'       
sn_snd_co2    =       'coupled'              ,    'no'    ,     ''      ,         ''           ,   ''        
! receive
sn_rcv_w10m   =       'none'                 ,    'no'    ,     ''      ,         ''          ,   ''    
sn_rcv_taumod =       'coupled'              ,    'no'    ,     ''      ,         ''          ,   ''    
sn_rcv_tau    =       'oce only'             ,    'no'    , 'cartesian' , 'eastward-northward',  'U,V'   
sn_rcv_dqnsdt =       'coupled'              ,    'no'    ,     ''      ,         ''          ,   ''    
sn_rcv_qsr    =       'oce and ice'          ,    'no'    ,     ''      ,         ''          ,   ''    
sn_rcv_qns    =       'oce and ice'          ,    'no'    ,     ''      ,         ''          ,   ''    
sn_rcv_emp    =       'conservative'         ,    'no'    ,     ''      ,         ''          ,   ''    
sn_rcv_rnf    =       'coupled'              ,    'no'    ,     ''      ,         ''          ,   ''    
sn_rcv_cal    =       'coupled'              ,    'no'    ,     ''      ,         ''          ,   ''    
sn_rcv_co2    =       'coupled'              ,    'no'    ,     ''      ,         ''          ,   ''    
/
!-----------------------------------------------------------------------
&namtra_qsr    !   penetrative solar radiation
!-----------------------------------------------------------------------
!              !  file name  ! frequency (hours) ! variable  ! time interp. !  clim  ! 'yearly'/ ! weights  ! rotation !
!              !             !  (if <0  months)  !   name    !   (logical)  !  (T/F) ! 'monthly' ! filename ! pairing  !
   sn_chl      ='chlorophyll',        -1         , 'ch'    ,   .true.     , .true. , 'yearly'  , ''       , ''

   cn_dir      = './'      !  root directory for the location of the runoff files
   ln_traqsr   = .true.    !  Light penetration (T) or not (F)
   ln_qsr_rgb  = .false.   !  RGB (Red-Green-Blue) light penetration
   ln_qsr_2bd  = .true.   !  2 bands              light penetration
   ln_qsr_bio  = .false.   !  bio-model light penetration
   nn_chldta   = 0  !  RGB : Chl data (=1) or cst value (=0)
   rn_abs      =   0.58    !  RGB & 2 bands: fraction of light (rn_si1)
   rn_si0      =   0.35    !  RGB & 2 bands: shortess depth of extinction
   rn_si1      =   23.0    !  2 bands: longest depth of extinction
/
!-----------------------------------------------------------------------
&namsbc_fwb   !   namsbc_fwb Fresh water budget
!-----------------------------------------------------------------------
   rd_fwb      = 1.        !  time scale to apply fwb correction (days)
   ikt_fwb     = 1         !  freq (time steps) to estimate fwb
   nr_ssh      = 0   !  0 for global sl=0. 1/2 for external SL/MASS file
   cn_dir      ='./'       !  root directory for location of ssh file
   sn_ssh      = 'ssh', -1,'ssh',.true.,.true.,'yearly','',''
   rcap        = 1.        !  mm/day cap for FWB adjusment
   lfwbr       = .false.
/
!-----------------------------------------------------------------------
&namsbc_rnf    !   runoffs namelist surface boundary condition
!-----------------------------------------------------------------------
!              !  file name           ! frequency (hours) ! variable  ! time interp. !  clim  ! 'yearly'/ ! weights  ! rotation !
!              !                      !  (if <0  months)  !   name    !   (logical)  !  (T/F) ! 'monthly' ! filename ! pairing  !
   sn_rnf      = 'runoff_1m_nomask',        -1         , 'sorunoff',   .true.     , .true. , 'yearly'  , ''       , ''
   sn_cnf      = 'runoff_1m_nomask',         0         , 'socoefr',   .false.    , .true. , 'yearly'  , ''       , ''
   sn_s_rnf    = 'runoffs'            ,        24         , 'rosaline',   .true.     , .true. , 'yearly'  , ''       , ''
   sn_t_rnf    = 'runoffs'            ,        24         , 'rotemper',   .true.     , .true. , 'yearly'  , ''       , ''
   sn_dep_rnf  = 'runoffs'            ,         0         , 'rodepth' ,   .false.    , .true. , 'yearly'  , ''       , ''

   cn_dir       = './'      !  root directory for the location of the runoff files
   ln_rnf_emp   = .false.   !  runoffs included into precipitation field (T) or into a file (F)
   ln_rnf_mouth = .true.    !  specific treatment at rivers mouths
   rn_hrnf      = 10.e0     !  depth over which enhanced vertical mixing is used
   rn_avt_rnf   = 2.e-3     !  value of the additional vertical mixing coef. [m2/s]
   rn_rfact     = 1.e0      !  multiplicative factor for runoff
   ln_rnf_depth = .false.   !  read in depth information for runoff
   ln_rnf_tem   = .false.   !  read in temperature information for runoff
   ln_rnf_sal   = .false.   !  read in salinity information for runoff
/
!-----------------------------------------------------------------------
&namsbc_apr    !   Atmospheric pressure used as ocean forcing or in bulk
!-----------------------------------------------------------------------
!              ! file name ! frequency (hours) ! variable ! time interpol. !  clim   ! 'yearly'/ ! weights  ! rotation !
!              !           !  (if <0  months)  !   name   !    (logical)   !  (T/F)  ! 'monthly' ! filename ! pairing  !
   sn_apr      = 'patm'    ,         -1        ,'somslpre',    .true.      , .true.  , 'yearly'  ,  ''      ,   ''

   cn_dir      = './'      !  root directory for the location of the bulk files
   ln_ref_apr  = .false.   !  ref. pressure: global mean Patm (T) or a constant (F)
/
!-----------------------------------------------------------------------
&namsbc_ssr    !   surface boundary condition : sea surface restoring
!-----------------------------------------------------------------------
!              !  file name  ! frequency (hours) ! variable  ! time interp. !  clim  ! 'yearly'/ ! weights  ! rotation !
!              !             !  (if <0  months)  !   name    !   (logical)  !  (T/F) ! 'monthly' ! filename ! pairing  !
   sn_sst      = 'sst',24,'sst',.false.,.false.,'monthly','',''
   sn_sss      = 'sss',-1,'sss',.true.,.true.,'yearly','',''

   cn_dir      = './'      !  root directory for the location of the runoff files
   nn_sstr     = 0 !  add a retroaction term in the surface heat 
                              !      flux (=1 1TS; =2 2TS; =3 3TS ) or not (=0)
   nn_sssr     =     2     !  add a damping     term in the surface freshwater flux (=2) 
                           !  or to SSS only (=1) or no damping term (=0)
   rn_dqdt     =  0.0   !  magnitude of the retroaction on temperature   [W/m2/K]
   rn_dqdt1     =  0 !  magnitude of the retroaction on temperature   [W/m2/K] 1st TS
   rn_dqdt2     =  0   !  magnitude of the retroaction on temperature   [W/m2/K] 2nd TS
   rn_dqdt3     =  0   !  magnitude of the retroaction on temperature   [W/m2/K] 3rd TS  
   nn_sstr_bnd  =  2 ! Method for capping SST damping heat fluxes
                                         ! (=0 No capping; =1 capping Max; 
                                         !  =2 capping Min; =3 capping both Max/Min)
   rn_sstr_bnd  =  200  !  Capping value for SST damping heat fluxes [W/m2]
                                     !  Max = ABS(200) if nn_sstr_bnd=1
                                     !  Min = -ABS(200) if nn_sstr_bnd=2
                                     !  Min=-ABS(200) and Max=ABS(200) if nn_sstr_bnd=3
   ln_sstr_mxl  =  .false.  ! capping SST damping heat flux only at MXL > rn_sstr_mxl
   rn_sstr_mxl  =  700     ! min value (in m) of mld (0.01 density change) that triggers capping
   rn_deds     =  0.0   !  magnitude of the damping on salinity   [mm/day]
   lgth_2ts     =  31   !  window for 2ts rlx running mean 
   lgth_3ts     =  730   !  window for 3rd ts rlx 
   ln_sssr_bnd =   .true.  !  flag to bound erp term (associated with nn_sssr=2)
   rn_sssr_bnd =   4.e0    !  ABS(Max/Min) value of the damping erp term [mm/day]
   ln_sssr_so  =   .true.  !  Nuding SSS under river mask south of 
   rn_sssr_solat = -60.0 !  Cut-off latitude for restoring SSS under river mask
   rn_dqdt_limice =   0.1   !  restoring factors under ice [ratio of dqdt] 
   rn_fr_icetd = 0.005   ! threshold value of ice conc for applying dqdt_limice 
   l2decv2nemo = .false.
/   
!-----------------------------------------------------------------------
&namsbc_alb    !   albedo parameters
!-----------------------------------------------------------------------
   rn_cloud    =    0.06   !  cloud correction to snow and ice albedo 
   rn_albice   =    0.53   !  albedo of melting ice in the arctic and antarctic
   rn_alphd    =    0.80   !  coefficients for linear interpolation used to
   rn_alphc    =    0.65   !  compute albedo between two extremes values 
   rn_alphdi   =    0.72   !  (Pyane, 1972)
/
!-----------------------------------------------------------------------
&namsbc_prt    !   perturbations to forcing (MAB 2014)
!-----------------------------------------------------------------------
!              !  file name  ! frequency (hours) ! variable  ! time interp. !  clim  ! 'yearly'/ ! weights  ! rotation !
!              !             !  (if <0  months)  !   name    !   (logical)  !  (T/F) ! 'monthly' ! filename ! pairing  !
   sn_putau     = 'putau'      ,        24         , 'utau'    , .false.      , .false., 'monthly'  , ''       , ''
   sn_pvtau     = 'pvtau'      ,        24         , 'vtau'    , .false.      , .false., 'monthly'  , ''       , ''
   sn_pqns      = 'pqns'       ,        24         , 'qns'     , .false.      , .false., 'monthly'  , ''       , ''
   sn_pqsr      = 'pqsr'       ,        24         , 'qsr'     , .false.      , .false., 'monthly'  , ''       , ''
   sn_pemp      = 'pemp'       ,        24         , 'emp'     , .false.      , .false., 'monthly'  , ''       , ''
   nn_putau     = 0    !0/1/2 for nothing/addpert/replace
   nn_pvtau     = 0
   nn_pqns     = 0
   nn_pqsr     = 0
   nn_pemp     = 0
   cn_dir      = './'      !  root directory for the location of the pert files
/      

!!======================================================================
!!               ***  Lateral boundary condition  ***
!!======================================================================
!!   namlbc        lateral momentum boundary condition
!!   namcla        cross land advection
!!   namobc        open boundaries parameters                           ("key_obc")
!!   namagrif      agrif nested grid ( read by child model only )       ("key_agrif") 
!!   nambdy        Unstructured open boundaries                         ("key_bdy")
!!   namtide       Tidal forcing at open boundaries                     ("key_bdy_tides")
!!======================================================================
!
!-----------------------------------------------------------------------
&namlbc        !   lateral momentum boundary condition
!-----------------------------------------------------------------------
   rn_shlat    =    0.     !  shlat = 0  !  0 < shlat < 2  !  shlat = 2  !  2 < shlat
                           !  free slip  !   partial slip  !   no slip   ! strong slip
   ln_vorlat   = .false.   !  consistency of vorticity boundary condition with analytical eqs.
   ln_antinc   = true
/
!-----------------------------------------------------------------------
&namcla        !   cross land advection
!-----------------------------------------------------------------------
   nn_cla      = 0         !  advection between 2 ocean pts separates by land
/
!-----------------------------------------------------------------------
&namobc        !   open boundaries parameters                           ("key_obc")
!-----------------------------------------------------------------------
   ln_obc_clim = .false.   !  climatological obc data files (T) or not (F)
   ln_vol_cst  = .true.    !  impose the total volume conservation (T) or not (F)
   ln_obc_fla  = .false.   !  Flather open boundary condition 
   nn_obcdta   =    1      !  = 0 the obc data are equal to the initial state
                           !  = 1 the obc data are read in 'obc.dta' files
   cn_obcdta   = 'annual'  !  set to annual if obc datafile hold 1 year of data
                           !  set to monthly if obc datafile hold 1 month of data
   rn_dpein    =    1.     !  damping time scale for inflow at east  open boundary
   rn_dpwin    =    1.     !     -           -         -       west    -      -
   rn_dpnin    =    1.     !     -           -         -       north   -      -
   rn_dpsin    =    1.     !     -           -         -       south   -      -
   rn_dpeob    = 3000.     !  time relaxation (days) for the east  open boundary
   rn_dpwob    =   15.     !     -           -         -     west    -      -
   rn_dpnob    = 3000.     !     -           -         -     north   -      -
   rn_dpsob    =   15.     !     -           -         -     south   -      -
   rn_volemp   =    1.     !  = 0 the total volume change with the surface flux (E-P-R)
                           !  = 1 the total volume remains constant
/
!-----------------------------------------------------------------------
&namagrif      !  AGRIF zoom                                            ("key_agrif")
!-----------------------------------------------------------------------
   nn_cln_update =    3    !  baroclinic update frequency
   ln_spc_dyn    = .true.  !  use 0 as special value for dynamics
   rn_sponge_tra = 2880.   !  coefficient for tracer   sponge layer [m2/s]
   rn_sponge_dyn = 2880.   !  coefficient for dynamics sponge layer [m2/s]
/
!-----------------------------------------------------------------------
!       nam_tide       tide parameters (#ifdef key_tide)
!-----------------------------------------------------------------------
!  ln_tide_obcramp= linearly apply tidal forcing on open boundaries (sea rdtideramp)
!  ln_tide_pot    = use tidal potential forcing
!  ln_read_tide_elev  = read tidal elevations (tide_elev.nc) as obc data
!  ln_read_tide_trans = read tidal barotropic velocities (tide_ubar.nc/tide_vbar.nc) as obc data
!  ln_compute_tide_trans = compute barotropic velocities from linear equations and elevation as obc data
!  ln_read_pot_charge = read charge potential
!  rdtideramp = Ramp length in days if ln_tide_obcramp=.true.
!  nb_harmo    = number of constituents used
!  name(1)     = 'M2', 'K1', etc name of constituent

&nam_tide
   ln_tide_obcramp       = .false.
   ln_tide_pot           = .false.
   ln_read_tide_elev     = .false.
   ln_read_tide_trans    = .false.
   ln_compute_tide_trans = .false.
   ln_read_pot_charge    = .false.
   rdtideramp = 2.  
   nb_harmo    = 1
   clname(1)     =   'M2'
!  nb_harmo    = 11
!  clname(1)     =   'M2'
!  clname(2)     =   'S2'
!  clname(3)     =   'N2'
!  clname(4)     =   'K1'
!  clname(5)     =   'O1'
!  clname(6)     =   'Q1'
!  clname(7)     =   'M4'
!  clname(8)     =   'K2'
!  clname(9)     =   'P1'
!  clname(10)    =   'Mf'
!  clname(11)    =   'Mm'
/
!-----------------------------------------------------------------------
&nambdy        !  unstructured open boundaries                          ("key_bdy")
!-----------------------------------------------------------------------
    nb_bdy = 1                            !  number of open boundary sets       
    ln_coords_file = .true.               !  =T : read bdy coordinates from file
    cn_coords_file = 'coordinates.bdy.nc' !  bdy coordinates files
    ln_mask_file = .false.                !  =T : read mask from file
    cn_mask_file = ''                     !  name of mask file (if ln_mask_file=.TRUE.)
    nn_dyn2d      =  2                    !  boundary conditions for barotropic fields
    nn_dyn2d_dta  =  3                    !  = 0, bdy data are equal to the initial state
                                          !  = 1, bdy data are read in 'bdydata   .nc' files
                                          !  = 2, use tidal harmonic forcing data from files
                                          !  = 3, use external data AND tidal harmonic forcing
    nn_dyn3d      =  0                    !  boundary conditions for baroclinic velocities
    nn_dyn3d_dta  =  0                    !  = 0, bdy data are equal to the initial state
                           !  = 1, bdy data are read in 'bdydata   .nc' files
    nn_tra        =  1                    !  boundary conditions for T and S
    nn_tra_dta    =  1                    !  = 0, bdy data are equal to the initial state
                           !  = 1, bdy data are read in 'bdydata   .nc' files
    nn_rimwidth  = 10                      !  width of the relaxation zone
    ln_vol     = .false.                  !  total volume correction (see nn_volctl parameter)
    nn_volctl  = 1                        !  = 0, the total water flux across open boundaries is zero
/
!-----------------------------------------------------------------------
&nambdy_dta      !  open boundaries - external data           ("key_bdy")
!-----------------------------------------------------------------------
!              !   file name    ! frequency (hours) !  variable  ! time interpol. !  clim   ! 'yearly'/ ! weights  ! rotation !
!              !                !  (if <0  months)  !    name    !    (logical)   !  (T/F)  ! 'monthly' ! filename ! pairing  !
   bn_ssh =     'amm12_bdyT_u2d' ,         24        , 'sossheig' ,     .true.     , .false. ,  'daily'  ,    ''    ,   ''
   bn_u2d =     'amm12_bdyU_u2d' ,         24        , 'vobtcrtx' ,     .true.     , .false. ,  'daily'  ,    ''    ,   ''
   bn_v2d =     'amm12_bdyV_u2d' ,         24        , 'vobtcrty' ,     .true.     , .false. ,  'daily'  ,    ''    ,   ''
   bn_u3d  =    'amm12_bdyU_u3d' ,         24        , 'vozocrtx' ,     .true.     , .false. ,  'daily'  ,    ''    ,   ''
   bn_v3d  =    'amm12_bdyV_u3d' ,         24        , 'vomecrty' ,     .true.     , .false. ,  'daily'  ,    ''    ,   ''
   bn_tem  =    'amm12_bdyT_tra' ,         24        , 'votemper' ,     .true.     , .false. ,  'daily'  ,    ''    ,   ''
   bn_sal  =    'amm12_bdyT_tra' ,         24        , 'vosaline' ,     .true.     , .false. ,  'daily'  ,    ''    ,   ''
   cn_dir  =    'bdydta/'
   ln_full_vel = .false.
/
!-----------------------------------------------------------------------
&nambdy_tide     ! tidal forcing at open boundaries              
!-----------------------------------------------------------------------
   filtide      = 'bdydta/amm12_bdytide_'         !  file name root of tidal forcing files
    tide_cpt(1)   ='Q1'  !  names of tidal components used
    tide_cpt(2)   ='O1'  !  names of tidal components used
    tide_cpt(3)   ='P1'  !  names of tidal components used
    tide_cpt(4)   ='S1'  !  names of tidal components used
    tide_cpt(5)   ='K1'  !  names of tidal components used
    tide_cpt(6)   ='2N2' !  names of tidal components used
    tide_cpt(7)   ='MU2' !  names of tidal components used
    tide_cpt(8)   ='N2'  !  names of tidal components used
    tide_cpt(9)   ='NU2' !  names of tidal components used
    tide_cpt(10)   ='M2'  !  names of tidal components used
    tide_cpt(11)   ='L2'  !  names of tidal components used
    tide_cpt(12)   ='T2'  !  names of tidal components used
    tide_cpt(13)   ='S2'  !  names of tidal components used
    tide_cpt(14)   ='K2'  !  names of tidal components used
    tide_cpt(15)   ='M4'  !  names of tidal components used
    tide_speed(1)   = 13.398661 !  phase speeds of tidal components (deg/hour)
    tide_speed(2)   = 13.943036 !  phase speeds of tidal components (deg/hour)
    tide_speed(3)   = 14.958932 !  phase speeds of tidal components (deg/hour)
    tide_speed(4)   = 15.000001 !  phase speeds of tidal components (deg/hour)
    tide_speed(5)   = 15.041069 !  phase speeds of tidal components (deg/hour)
    tide_speed(6)   = 27.895355 !  phase speeds of tidal components (deg/hour)
    tide_speed(7)   = 27.968210 !  phase speeds of tidal components (deg/hour)
    tide_speed(8)   = 28.439730 !  phase speeds of tidal components (deg/hour)
    tide_speed(9)   = 28.512585 !  phase speeds of tidal components (deg/hour)
    tide_speed(10)   = 28.984106 !  phase speeds of tidal components (deg/hour)
    tide_speed(11)   = 29.528479 !  phase speeds of tidal components (deg/hour)
    tide_speed(12)   = 29.958935 !  phase speeds of tidal components (deg/hour)
    tide_speed(13)   = 30.000002 !  phase speeds of tidal components (deg/hour)
    tide_speed(14)   = 30.082138 !  phase speeds of tidal components (deg/hour)
    tide_speed(15)   = 57.968212 !  phase speeds of tidal components (deg/hour)
    ln_tide_date = .true.               !  adjust tidal harmonics for start date of run
/
!!======================================================================
!!                 ***  Bottom boundary condition  ***
!!======================================================================
!!   nambfr        bottom friction
!!   nambbc        bottom temperature boundary condition               
!!   nambbl        bottom boundary layer scheme                         ("key_trabbl")
!!======================================================================
!
!-----------------------------------------------------------------------
&nambfr        !   bottom friction
!-----------------------------------------------------------------------
   nn_bfr      =    2      !  type of bottom friction :   = 0 : free slip,  = 1 : linear friction
                           !                              = 2 : nonlinear friction
   rn_bfri1    =    4.e-4  !  bottom drag coefficient (linear case)
   rn_bfri2    =    1.e-3  !  bottom drag coefficient (non linear case)
   rn_bfeb2    =    2.5e-3 !  bottom turbulent kinetic energy background  (m2/s2)
   ln_bfr2d    = .true.    !  horizontal variation of the bottom friction coef (read a 2D mask file )
   rn_bfrien   =    10.    !  local multiplying factor of bfr (ln_bfr2d=T)
   ln_bfrimp   = .false.    !  implicit bottom friction (requires ln_zdfexp = .false. if true)
/
!-----------------------------------------------------------------------
&nambbc        !   bottom temperature boundary condition
!-----------------------------------------------------------------------
   ln_trabbc   = .false.   !  Apply a geothermal heating at the ocean bottom
   nn_geoflx   =    2      !  geothermal heat flux: = 0 no flux 
                           !     = 1 constant flux
                           !     = 2 variable flux (read in geothermal_heating.nc in mW/m2) 
   rn_geoflx_cst = 86.4e-3 !  Constant value of geothermal heat flux [W/m2]
/
!-----------------------------------------------------------------------
&nambbl        !   bottom boundary layer scheme
!-----------------------------------------------------------------------
   nn_bbl_ldf  =  1      !  diffusive bbl (=1)   or not (=0)
   nn_bbl_adv  =  1      !  advective bbl (=1/2) or not (=0)
   rn_ahtbbl   =  1000.  !  lateral mixing coefficient in the bbl  [m2/s]
   rn_gambbl   =  10.    !  advective bbl coefficient                 [s]
/

!!======================================================================
!!                        Tracer (T & S ) namelists
!!======================================================================
!!   nameos        equation of state
!!   namtra_adv    advection scheme
!!   namtra_ldf    lateral diffusion scheme
!!   namtra_dmp    T & S newtonian damping                        
!!======================================================================
!
!-----------------------------------------------------------------------
&nameos        !   ocean physical parameters
!-----------------------------------------------------------------------
   nn_eos      =   0       !  type of equation of state and Brunt-Vaisala frequency
                           !     = 0, UNESCO (formulation of Jackett and McDougall (1994) and of McDougall (1987) )
                           !     = 1, linear: rho(T)   = rau0 * ( 1.028 - ralpha * T )
                           !     = 2, linear: rho(T,S) = rau0 * ( rbeta * S - ralpha * T )
   rn_alpha    =   2.0e-4  !  thermal expension coefficient (nn_eos= 1 or 2)
   rn_beta     =   7.7e-4  !  saline  expension coefficient (nn_eos= 2)
/
!-----------------------------------------------------------------------
&namtra_adv    !   advection scheme for tracer 
!-----------------------------------------------------------------------
   ln_traadv_cen2   =  .false.  !  2nd order centered scheme   
   ln_traadv_tvd    =  .true.   !  TVD scheme                
   ln_traadv_muscl  =  .false.  !  MUSCL scheme             
   ln_traadv_muscl2 =  .false.  !  MUSCL2 scheme + cen2 at boundaries  
   ln_traadv_ubs    =  .false.  !  UBS scheme                 
   ln_traadv_qck    =  .false.  !  QUICKEST scheme                 
/
!-----------------------------------------------------------------------
&namtra_ldf    !   lateral diffusion scheme for tracer 
!-----------------------------------------------------------------------
   !                       !  Type of the operator : 
   ln_traldf_lap    =  .true.   !  laplacian operator       
   ln_traldf_bilap  =  .false.  !  bilaplacian operator     
   !                       !  Direction of action  :
   ln_traldf_level  =  .false.  !  iso-level                
   ln_traldf_hor    =  .false.  !  horizontal (geopotential)            (require "key_ldfslp" when ln_sco=T)
   ln_traldf_iso    =  .true.   !  iso-neutral                          (require "key_ldfslp")
   ln_traldf_grif   =  .false.  !  griffies skew flux formulation       (require "key_ldfslp")
   ln_traldf_gdia   =  .false.  !  griffies operator strfn diagnostics  (require "key_ldfslp")
   ln_triad_iso     =  .false.  !  griffies operator calculates triads twice => pure lateral mixing in ML (require "key_ldfslp")
   ln_botmix_grif   =  .false.  !  griffies operator with lateral mixing on bottom (require "key_ldfslp")
                         !  Coefficient
   rn_aht_0         =   300.   !  horizontal eddy diffusivity for tracers [m2/s]
   rn_ahtb_0        =     0.    !  background eddy diffusivity for ldf_iso [m2/s]
   rn_aeiv_0        =     0.   !  eddy induced velocity coefficient [m2/s]    (require "key_traldf_eiv")
   ln_outfile       = false
/
!-----------------------------------------------------------------------
&namtra_dmp    !   tracer: T & S newtonian damping                      ('key_tradmp')
!-----------------------------------------------------------------------
   ln_tradmp   =  .true.   !  add a damping termn (T) or not (F)
   ln_tradmp_sfc = false  ! Extend 3D damping to surface layer.
   nn_hdmp     = 91     !  horizontal shape =-1, damping in Med and Red Seas only
                           !                   =XX, damping poleward of XX degrees (XX>=0)
                           !                      + F(distance-to-coast) + Red and Med Seas
   nn_zdmp = 0      !  vertical   shape =0    damping throughout the water column
                           !                   =1 no damping in the mixing layer (kz  criteria)
                           !                   =2 no damping in the mixed  layer (rho crieria)
   rn_surf     = 1095 !  surface time scale of damping   [days]
   rn_bot      = 1095 !  bottom  time scale of damping   [days]
   rn_dep      =  800.     !  depth of transition between rn_surf and rn_bot [meters]
   rn_dmp_width = 10 ! Width of transition used with NN_HDMP>0 [degrees latitude]
   nn_file     =    0      !  create a damping.coeff NetCDF file (=1) or not (=0)
/

!!======================================================================
!!                      ***  Dynamics namelists  ***
!!======================================================================
!!   namdyn_adv    formulation of the momentum advection
!!   namdyn_vor    advection scheme
!!   namdyn_hpg    hydrostatic pressure gradient
!!   namdyn_spg    surface pressure gradient                            (CPP key only)
!!   namdyn_ldf    lateral diffusion scheme
!!======================================================================
!
!-----------------------------------------------------------------------
&namdyn_adv    !   formulation of the momentum advection
!-----------------------------------------------------------------------
   ln_dynadv_vec = .true.  !  vector form (T) or flux form (F)  
   ln_dynadv_cen2= .false. !  flux form - 2nd order centered scheme
   ln_dynadv_ubs = .false. !  flux form - 3rd order UBS      scheme 
/  
!-----------------------------------------------------------------------
&namdyn_vor    !   option of physics/algorithm (not control by CPP keys)
!-----------------------------------------------------------------------
   ln_dynvor_ene = .false. !  enstrophy conserving scheme  
   ln_dynvor_ens = .false. !  energy conserving scheme    
   ln_dynvor_mix = .false. !  mixed scheme               
   ln_dynvor_een = .true.  !  energy & enstrophy scheme  
/
!-----------------------------------------------------------------------
&namdyn_hpg    !   Hydrostatic pressure gradient option
!-----------------------------------------------------------------------
   ln_hpg_zco  = .false.   !  z-coordinate - full steps                   
   ln_hpg_zps  = .true.    !  z-coordinate - partial steps (interpolation)
   ln_hpg_sco  = .false.   !  s-coordinate (standard jacobian formulation)
   ln_hpg_djc  = .false.   !  s-coordinate (Density Jacobian with Cubic polynomial)
   ln_hpg_prj  = .false.   !  s-coordinate (Pressure Jacobian scheme)
   ln_dynhpg_imp = .true.  !  time stepping: semi-implicit time scheme  (T)
                                 !           centered      time scheme  (F)
/
!-----------------------------------------------------------------------
!namdyn_spg    !   surface pressure gradient   (CPP key only)
!-----------------------------------------------------------------------
!                          !  explicit free surface                     ("key_dynspg_exp")
!                          !  filtered free surface                     ("key_dynspg_flt")
!                          !  split-explicit free surface               ("key_dynspg_ts")

!-----------------------------------------------------------------------
&namdyn_ldf    !   lateral diffusion on momentum
!-----------------------------------------------------------------------
   !                       !  Type of the operator : 
   ln_dynldf_lap    =  .false.  !     laplacian operator         
   ln_dynldf_bilap  =  .true.   !     bilaplacian operator    
   !                       !  Direction of action  : 
   ln_dynldf_level  =  .false.  !  iso-level               
   ln_dynldf_hor    =  .true.   !  horizontal (geopotential)            (require "key_ldfslp" in s-coord.)
   ln_dynldf_iso    =  .false.  !  iso-neutral                          (require "key_ldfslp")
   !                       !  Coefficient
   rn_ahm_0_lap     = 0.        !  horizontal laplacian eddy viscosity   [m2/s]
   rn_ahm_0_lap_eq  =     0.   !  horizontal laplacian eddy viscosity   [m2/s]
   rn_ahmb_0        =     0.    !  background eddy viscosity for ldf_iso [m2/s]
   rn_ahm_0_blp     =  -1.1e11  !  horizontal bilaplacian eddy viscosity [m4/s] 
   ln_outfile       = false
/
!!======================================================================
!!             Tracers & Dynamics vertical physics namelists
!!======================================================================
!!    namzdf        vertical physics
!!    namzdf_ric    richardson number dependent vertical mixing         ("key_zdfric")
!!    namzdf_tke    TKE dependent vertical mixing                       ("key_zdftke")
!!    namzdf_kpp    KPP dependent vertical mixing                       ("key_zdfkpp")
!!    namzdf_ddm    double diffusive mixing parameterization            ("key_zdfddm")
!!    namzdf_tmx    tidal mixing parameterization                       ("key_zdftmx")
!!======================================================================
!
!-----------------------------------------------------------------------
&namzdf        !   vertical physics
!-----------------------------------------------------------------------
   rn_avm0     =   1.e-4   !  vertical eddy viscosity   [m2/s]          (background Kz if not "key_zdfcst")
   rn_avt0     =   1.e-5   !  vertical eddy diffusivity [m2/s]          (background Kz if not "key_zdfcst")
   nn_avb      =    0      !  profile for background avt & avm (=1) or not (=0)
   nn_havtb    =    1      !  horizontal shape for avtb (=1) or not (=0)
   ln_zdfevd   = .true.    !  enhanced vertical diffusion (evd) (T) or not (F)
   nn_evdm     =    1      !  evd apply on tracer (=0) or on tracer and momentum (=1)
   rn_avevd    =   10.     !  evd mixing coefficient [m2/s]
   ln_zdfnpc   = .false.   !  Non-Penetrative Convective algorithm (T) or not (F)
   nn_npc      =    1            !  frequency of application of npc
   nn_npcp     =  365      !  npc control print frequency
   ln_zdfexp   = .false.   !  time-stepping: split-explicit (T) or implicit (F) time stepping
   nn_zdfexp   =    3      !  number of sub-timestep for ln_zdfexp=T
/
!-----------------------------------------------------------------------
&namzdf_ric    !   richardson number dependent vertical diffusion       ("key_zdfric" )
!-----------------------------------------------------------------------
   rn_avmri    = 100.e-4   !  maximum value of the vertical viscosity
   rn_alp      =   5.      !  coefficient of the parameterization
   nn_ric      =   2       !  coefficient of the parameterization
   rn_ekmfc    =   0.7     !  Factor in the Ekman depth Equation
   rn_mldmin   =   1.0     !  minimum allowable mixed-layer depth estimate (m)
   rn_mldmax   =1000.0     !  maximum allowable mixed-layer depth estimate (m)
   rn_wtmix    =  10.0     !  vertical eddy viscosity coeff [m2/s] in the mixed-layer
   rn_wvmix    =  10.0     !  vertical eddy diffusion coeff [m2/s] in the mixed-layer
   ln_mldw     = .true.    !  Flag to use or not the mized layer depth param.
/
!-----------------------------------------------------------------------
&namzdf_tke    !   turbulent eddy kinetic dependent vertical diffusion  ("key_zdftke")
!-----------------------------------------------------------------------
   rn_ediff    =   0.1     !  coef. for vertical eddy coef. (avt=rn_ediff*mxl*sqrt(e) )
   rn_ediss    =   0.7     !  coef. of the Kolmogoroff dissipation
   rn_ebb      =  67.83   !  coef. of the surface input of tke (=67.83 suggested when ln_mxl0=T)
   ln_ebbice   =  true ! modify tke surface input under ice (F)
   rn_ebbice   =  20  !   coef. of the surface input of tke under ice
   rn_emin     =   1.e-6   !  minimum value of tke [m2/s2]
   rn_emin0    =   1.e-4   !  surface minimum value of tke [m2/s2]
   nn_mxl      =   3       !  mixing length: = 0 bounded by the distance to surface and bottom
                           !                 = 1 bounded by the local vertical scale factor
                           !                 = 2 first vertical derivative of mixing length bounded by 1
                           !                 = 3 as =2 with distinct disspipative an mixing length scale
   nn_pdl      =  1       !  Prandtl number function of richarson number (=1, avt=pdl(Ri)*avm) or not (=0, avt=avm)
   ln_mxl0     = .true.    !  surface mixing length scale = F(wind stress) (T) or not (F)
   rn_mxl0     =   0.01    !  surface  buoyancy lenght scale minimum value
   ln_lc       = .true.    !  Langmuir cell parameterisation (Axell 2002)
   rn_lc       =   0.15    !  coef. associated to Langmuir cells
   nn_etau     =   1     !  penetration of tke below the mixed layer (ML) due to internal & intertial waves
                           !        = 0 no penetration
                           !        = 1 add a tke source below the ML
                           !        = 2 add a tke source just at the base of the ML
                           !        = 3 as = 1 applied on HF part of the stress    ("key_coupled")
   rn_efr      = 0.05    !  fraction of surface tke value which penetrates below the ML (nn_etau=1 or 2)
   nn_htau     =   0   !  type of exponential decrease of tke penetration below the ML
                           !        = 0  constant 10 m length scale
                           !        = 1  0.5m at the equator to 30m poleward of 40 degrees
                           !        = 2  5m at eq to 60m poleward of 40 degrees
                           !        = 3 proportional to SWH
   rn_whtauscl = 4 ! SWH scalign for htau=3
   rn_whtaumin = 1 ! minimum htau (nn_htau=3)
   rn_delta_0 = 0.19 ! Strength of background diffusion
   rn_alpha_m = 1.
   rn_alpha_h = 1.4
   rn_beta_m  = 14.
   rn_beta_h  = 11.2
/
!------------------------------------------------------------------------
&namzdf_kpp    !   K-Profile Parameterization dependent vertical mixing  ("key_zdfkpp", and optionally:
!------------------------------------------------------------------------ "key_kppcustom" or "key_kpplktb")
   ln_kpprimix = .true.    !  shear instability mixing 
   rn_difmiw   =  1.0e-04  !  constant internal wave viscosity [m2/s]
   rn_difsiw   =  0.1e-04  !  constant internal wave diffusivity [m2/s]
   rn_riinfty  =  0.8      !  local Richardson Number limit for shear instability
   rn_difri    =  0.0050   !  maximum shear mixing at Rig = 0    [m2/s]
   rn_bvsqcon  = -0.01e-07 !  Brunt-Vaisala squared for maximum convection [1/s2] 
   rn_difcon   =  1.       !  maximum mixing in interior convection [m2/s] 
   nn_avb      =  0        !  horizontal averaged (=1) or not (=0) on avt and amv
   nn_ave      =  1        !  constant (=0) or profile (=1) background on avt
/
!-----------------------------------------------------------------------
&namzdf_gls                !   GLS vertical diffusion                   ("key_zdfgls")
!-----------------------------------------------------------------------
   rn_emin       = 1.e-6   !  minimum value of e   [m2/s2]
   rn_epsmin     = 1.e-12  !  minimum value of eps [m2/s3]
   ln_length_lim = .true.  !  limit on the dissipation rate under stable stratification (Galperin et al., 1988)
   rn_clim_galp  = 0.53    !  galperin limit
   ln_crban      = .true.  !  Use Craig & Banner (1994) surface wave mixing parametrisation
   ln_sigpsi     = .true.  !  Activate or not Burchard 2001 mods on psi schmidt number in the wb case
   rn_crban      = 100.    !  Craig and Banner 1994 constant for wb tke flux
   rn_charn      = 70000.  !  Charnock constant for wb induced roughness length
   nn_tkebc_surf =   1     !  surface tke condition (0/1/2=Dir/Neum/Dir Mellor-Blumberg)
   nn_tkebc_bot  =   1     !  bottom tke condition (0/1=Dir/Neum)
   nn_psibc_surf =   1     !  surface psi condition (0/1/2=Dir/Neum/Dir Mellor-Blumberg)
   nn_psibc_bot  =   1     !  bottom psi condition (0/1=Dir/Neum)
   nn_stab_func  =   2     !  stability function (0=Galp, 1= KC94, 2=CanutoA, 3=CanutoB)
   nn_clos       =   1     !  predefined closure type (0=MY82, 1=k-eps, 2=k-w, 3=Gen)
/
!-----------------------------------------------------------------------
&namzdf_ddm    !   double diffusive mixing parameterization             ("key_zdfddm")
!-----------------------------------------------------------------------
   rn_avts     = 1.e-4     !  maximum avs (vertical mixing on salinity)
   rn_hsbfr    = 1.6       !  heat/salt buoyancy flux ratio
/
!-----------------------------------------------------------------------
&namzdf_tmx    !   tidal mixing parameterization                        ("key_zdftmx")
!-----------------------------------------------------------------------
   rn_htmx     = 500.      !  vertical decay scale for turbulence (meters)
   rn_n2min    = 1.e-8     !  threshold of the Brunt-Vaisala frequency (s-1)
   rn_tfe      = 0.333     !  tidal dissipation efficiency
   rn_me       = 0.2       !  mixing efficiency 
   ln_tmx_itf  = .true.    !  ITF specific parameterisation
   rn_tfe_itf  = 1.        !  ITF tidal dissipation efficiency
!            !  file name            ! frequency (hours) ! variable   ! time interp. !  clim  ! 'yearly'/ ! weights  ! rotation !
!            !                       !  (if <0  months)  !   name     !   (logical)  !  (T/F) ! 'monthly' ! filename ! pairing  !
   sn_mskitf =  'mask_itf'           ,      -12          , 'tmaskitf' ,   .false.    , .true. ,  'yearly' , ''       , ''
   sn_m2     =  'M2rowdrg'           ,      -12          , 'field'    ,   .false.    , .true. ,  'yearly' , ''       , ''
   sn_s2     =  'S2rowdrg'           ,      -12          , 'field'    ,   .false.    , .true. ,  'yearly' , ''       , ''
   sn_k1     =  'K1rowdrg'           ,      -12          , 'field'    ,   .false.    , .true. ,  'yearly' , ''       , ''
/
!!======================================================================
!!                  ***  Miscellaneous namelists  ***
!!======================================================================
!!   nammpp            Massively Parallel Processing                    ("key_mpp_mpi")
!!   namctl            Control prints & Benchmark
!!   namsol            elliptic solver / island / free surface 
!!======================================================================
!
!-----------------------------------------------------------------------
&namsol        !   elliptic solver / island / free surface 
!-----------------------------------------------------------------------
   nn_solv     =      1    !  elliptic solver: =1 preconditioned conjugate gradient (pcg)
                           !                   =2 successive-over-relaxation (sor)
   nn_sol_arp  =      0    !  absolute/relative (0/1) precision convergence test
   rn_eps      =  1.e-6    !  absolute precision of the solver
   nn_nmin     =    300    !  minimum of iterations for the SOR solver
   nn_nmax     =   2800    !  maximum of iterations for the SOR solver
   nn_nmod     =     10    !  frequency of test for the SOR solver
   rn_resmax   =  1.e-10   !  absolute precision for the SOR solver
   rn_sor      =  1.973    !  optimal coefficient for SOR solver (to be adjusted with the domain)
/
!-----------------------------------------------------------------------
&nammpp        !   Massively Parallel Processing                        ("key_mpp_mpi")
!-----------------------------------------------------------------------
   cn_mpi_send =  'I'      !  mpi send/recieve type   ='S', 'B', or 'I' for standard send,
                           !  buffer blocking send or immediate non-blocking sends, resp.
   nn_buffer   =   0       !  size in bytes of exported buffer ('B' case), 0 no exportation
   jpni        =   0 !  jpni   number of processors following i (set automatically if < 1)
   jpnj        =   0 !  jpnj   number of processors following j (set automatically if < 1)
   jpnij       =   124 !  jpnij  number of local domains (set automatically if < 1)
   ln_nnogather = .true.
   ln_lbcmap   =   .TRUE.
/
!-----------------------------------------------------------------------
&namctl        !   Control prints & Benchmark
!-----------------------------------------------------------------------
   ln_ctl      = .false.   !  trends control print (expensive!)
   nn_print    =    0      !  level of print (0 no extra print)
   nn_ictls    =    0      !  start i indice of control sum (use to compare mono versus
   nn_ictle    =    0      !  end   i indice of control sum        multi processor runs
   nn_jctls    =    0      !  start j indice of control               over a subdomain)
   nn_jctle    =    0      !  end   j indice of control
   nn_isplt    =    1      !  number of processors in i-direction
   nn_jsplt    =    1      !  number of processors in j-direction
   nn_bench    =    0      !  Bench mode (1/0): CAUTION use zero except for bench
                           !     (no physical validity of the results)
   nn_timing   =    1      !  timing by routine activated (=1) creates timing.output file, or not (=0)
   ln_mpiprt  = .false.    !  Non-masters tasks write ocean.output_...
   ln_smslabel= .false. !  Communicate with SMS.
   cn_smslabel = "xlabel"
   nn_smsfrq  = 72 !  SMS communication frequency (time steps)
   ln_diadebug = .false.   ! Grid point diagnostic output (fill namdiadebug)
   ln_sglread  = .true.
   ln_sglreadfbm  = .false.
   ln_sglwrite = .false.
   ln_sglwritefbm = .false.
   ln_timeout = .true.
   ln_timeoutflush = .true.
/
!-----------------------------------------------------------------------
&namcfg        !   parameters of the configuration
!-----------------------------------------------------------------------
   cp_cfg      =  "orca"               !  name of the configuration
   cp_cfz      =  "normal"             !  zoom
   jp_cfg      =     025               !  resolution of the configuration
   jpidta      =    1442               !  1st lateral dimension ( >= jpi )
   jpjdta      =    1021               !  2nd    "         "    ( >= jpj )
   jpkdta      =      75               !  number of levels      ( >= jpk )
   jpiglo      =    1442               !  1st dimension of global domain --> i =jpidta
   jpjglo      =    1021               !  2nd    -                  -    --> j  =jpjdta
   jpizoom     =       1               !  left bottom (i,j) indices of the zoom
   jpjzoom     =       1               !  in data domain indices
   jperio      =       4               !  lateral cond. type (between 0 and 6)
   ln_trabbl   = .false.               !  key_trabbl not set
   nn_ldfdyn   = 2                     !  key_dynldf_c2d
   ln_zdfddm   = .false.               !  key_zdfddm not set
   ln_traldf_eiv = .false.             !  key_traldf_eiv not set
/
!!======================================================================
!!                  ***  Diagnostics namelists  ***
!!======================================================================
!!   namnc4       netcdf4 chunking and compression settings             ("key_netcdf4")
!!   namtrd       dynamics and/or tracer trends                         ("key_trddyn","key_trdtra","key_trdmld")
!!   namflo       float parameters                                      ("key_float")
!!   namptr       Poleward Transport Diagnostics
!!   namhsb       Heat and salt budgets 
!!======================================================================
!
!-----------------------------------------------------------------------
&namnc4        !   netcdf4 chunking and compression settings            ("key_netcdf4")
!-----------------------------------------------------------------------
   nn_nchunks_i=   4       !  number of chunks in i-dimension
   nn_nchunks_j=   4       !  number of chunks in j-dimension
   nn_nchunks_k=   75      !  number of chunks in k-dimension
                           !  setting nn_nchunks_k = jpk will give a chunk size of 1 in the vertical which
                           !  is optimal for postprocessing which works exclusively with horizontal slabs
   ln_nc4zip   = .false.    !  (T) use netcdf4 chunking and compression
                           !  (F) ignore chunking information and produce netcdf3-compatible files
/
!-----------------------------------------------------------------------
&namtrd        !   diagnostics on dynamics and/or tracer trends         ("key_trddyn" and/or "key_trdtra")
!              !       or mixed-layer trends or barotropic vorticity    ("key_trdmld" or     "key_trdvor")
!-----------------------------------------------------------------------
   nn_trd      =  9999  !  time step frequency dynamics and tracers trends
   nn_ctls     =   0       !  control surface type in mixed-layer trends (0,1 or n<jpk)
   rn_ucf      =   1.      !  unit conversion factor (=1 -> /seconds ; =86400. -> /day)
   cn_trdrst_in      = "restart_mld"   ! suffix of ocean restart name (input)
   cn_trdrst_out     = "restart_mld"   ! suffix of ocean restart name (output)
   ln_trdmld_restart = .false.         !  restart for ML diagnostics
   ln_trdmld_instant = .false.         !  flag to diagnose trends of instantantaneous or mean ML T/S
/
!-----------------------------------------------------------------------
&namflo       !   float parameters                                      ("key_float")
!-----------------------------------------------------------------------
   jpnfl         = 1          !  total number of floats during the run
   jpnnewflo     = 0          !  number of floats for the restart
   ln_rstflo     = .false.    !  float restart (T) or not (F)
   nn_writefl    =      75    !  frequency of writing in float output file 
   nn_stockfl    =    5475    !  frequency of creation of the float restart file 
   ln_argo       = .false.    !  Argo type floats (stay at the surface each 10 days)
   ln_flork4     = .false.    !  trajectories computed with a 4th order Runge-Kutta (T)
                              !  or computed with Blanke' scheme (F)
   ln_ariane     = .true.     !  Input with Ariane tool convention(T)
   ln_flo_ascii  = .true.     !  Output with Ariane tool netcdf convention(F) or ascii file (T)
/
!-----------------------------------------------------------------------
&namptr       !   Poleward Transport Diagnostic
!-----------------------------------------------------------------------
   ln_diaptr  = .false.    !  Poleward heat and salt transport (T) or not (F)
   ln_diaznl  = .true.     !  Add zonal means and meridional stream functions
   ln_subbas  = .true.     !  Atlantic/Pacific/Indian basins computation (T) or not 
                           !  (orca configuration only, need input basins mask file named "subbasins.nc"
   ln_ptrcomp = .true.     !  Add decomposition : overturning
   nn_fptr    =  1         !  Frequency of ptr computation [time step]
   nn_fwri    =  15        !  Frequency of ptr outputs [time step]
/
!-----------------------------------------------------------------------
&namhsb       !  Heat and salt budgets 
!-----------------------------------------------------------------------
   ln_diahsb  = .false.    !  check the heat and salt budgets (T) or not (F)
/
!-----------------------------------------------------------------------
&nam_diaharm   !   Harmonic analysis of tidal constituents ('key_diaharm')
!-----------------------------------------------------------------------
    nit000_han = 1         ! First time step used for harmonic analysis
    nitend_han = 75        ! Last time step used for harmonic analysis
    nstep_han  = 15        ! Time step frequency for harmonic analysis
    tname(1)   = 'M2'      ! Name of tidal constituents
    tname(2)   = 'K1'
/
!-----------------------------------------------------------------------
&namdct        ! transports through sections
!-----------------------------------------------------------------------
    nn_dct      = 15       !  time step frequency for transports computing
    nn_dctwri   = 15       !  time step frequency for transports writing
    nn_secdebug = 112      !      0 : no section to debug
                           !     -1 : debug all section
                           !  0 < n : debug section number n
/
!!======================================================================
!!            ***  Observation & Assimilation namelists ***
!!======================================================================
!!   namobs       observation and model comparison                      ('key_diaobs')
!!   nam_asminc   assimilation increments                               ('key_asminc')
!!======================================================================
!
!-----------------------------------------------------------------------
&namobs       !  observation usage switch                               ('key_diaobs')
!-----------------------------------------------------------------------
   cn_oceobs_out_path="./"
   ln_t3d     = .false.      ! Logical switch for T profile observations         
   ln_s3d     = .false.      ! Logical switch for S profile observations          
   ln_ena     = .false.    ! Logical switch for ENACT insitu data set           
   !                       !     ln_cor                  Logical switch for Coriolis insitu data set       
   ln_profb   = .false.      ! Logical switch for feedback insitu data set     
   ln_sla     = .false.      ! Logical switch for SLA observations               

   ln_sladt   = .false.    ! Logical switch for AVISO SLA data              

   ln_slafb   = .false.      ! Logical switch for feedback SLA data            
                           !     ln_ssh                  Logical switch for SSH observations              

   ln_sst     = .false.      ! Logical switch for SST observations
   ln_sstbias = .false.
   ln_grdsst  = .true.
                           !     ln_grdsst               Logical switch for gridded observations       
                           !     ln_ghrsst               Logical switch for GHRSST observations          

   ln_sstfb   = .false.    ! Logical switch for feedback SST data          
   sstfbfiles = ''
                           !     ln_sss                  Logical switch for SSS observations              
                           !     ln_seaice               Logical switch for Sea Ice observations        
                           !     ln_vel3d                Logical switch for velocity observations         
                           !     ln_velavcur             Logical switch for velocity daily av. cur.    
                           !     ln_velhrcur             Logical switch for velocity high freq. cur.   
                           !     ln_velavadcp            Logical switch for velocity daily av. ADCP  
                           !     ln_velhradcp            Logical switch for velocity high freq. ADCP
                           !     ln_velfb                Logical switch for feedback velocity data       
                           !     ln_grid_global          Global distribtion of observations         
                           !     ln_grid_search_lookup   Logical switch for obs grid search w/lookup table  
                           !     grid_search_file        Grid search lookup file header 
                           !     enactfiles              ENACT input observation file names 
                           !     coriofiles              Coriolis input observation file name  
   !                       ! profbfiles: Profile feedback input observation file name 
   profbfiles = ''
   ln_profb_enatim = .true.
                           !     ln_profb_enatim         Enact feedback input time setting switch    
                           !     slafilesact             Active SLA input observation file name
                           !     slafilespas             Passive SLA input observation file name 
   !                       ! slafbfiles: Feedback SLA input observation file nam 
   slafbfiles = ''
                           !     sstfiles                GHRSST input observation file name       
   !                       ! sstfbfiles: Feedback SST input observation file name 
                           !     seaicefiles             Sea Ice input observation file name 
                           !     velavcurfiles           Vel. cur. daily av. input file name  
                           !     velhvcurfiles           Vel. cur. high freq. input file name  
                           !     velavadcpfiles          Vel. ADCP daily av. input file name    
                           !     velhvadcpfiles          Vel. ADCP high freq. input file name 
                           !     velfbfiles              Vel. feedback input observation file name 
                           !     dobsini                 Initial date in window YYYYMMDD.HHMMSS       
                           !     dobsend                 Final date in window YYYYMMDD.HHMMSS         
                           !     n1dint                  Type of vertical interpolation method        
                           !     n2dint                  Type of horizontal interpolation method       
                           !     ln_nea                  Rejection of observations near land switch    
   nmsshc     = 1          ! MSSH correction scheme                         
                           !     mdtcorr                 MDT  correction                               
                           !     mdtcutoff               MDT cutoff for computed correction          
   ln_altbias = .false.    ! Logical switch for alt bias                
   ln_ignmis  = .true.     ! Logical switch for ignoring missing files   
   endailyavtypes = -1  !     endailyavtypes   ENACT daily average types
   ln_grid_global = .true.
   ln_grid_search_lookup = .false.
   ln_velfb = .false.
   ln_vel3d = .false.
   ln_vel3dw = false
   velfbfiles = ''
   ln_velfb_av = .false.
   ln_vel2d = .false.
   velfb2dfiles = ""
   n1dint = 1
   n2dint = 3
   ln_nea = .true.
   mdtcutoff = 65.0
   mdtcorr = 1.61
   dobsini = 20200120.000000
   dobsend = 20200122.000000
   ln_profb_ena = .false.
   ln_profb_enatim = .false.
   ln_seaice = .false.
   ln_grdseaice = .false.
   ln_seaicefb = .true.
   grdseaicename = 'ice_cover_yYYYYmMM.nc'
   seaicefbfiles = ''
   nicethin = 1 ! Thinning factor for reading gridded seaice obs
   ln_seaicepos = false   ! Logical switch for seaice gridded obs perturbation
   iceprobseed = 0        ! Seed for seaice obs perturbation    
   ln_obsmpppack = .TRUE.
/ 
!-----------------------------------------------------------------------
&nam_asminc   !   assimilation increments                               ('key_asminc')
!-----------------------------------------------------------------------
    ln_bkgwri = .FALSE.   !  Logical switch for writing out background state 
    ln_trainc = .FALSE.   !  Logical switch for applying tracer increments
    ln_dyninc = .FALSE.   !  Logical switch for applying velocity increments
    ln_sshinc = .FALSE.   !  Logical switch for applying SSH increments 
    ln_seaiceinc = .false.   !  Logical switch for applying seaice increments
    ln_asmdin = .FALSE.   !  Logical switch for Direct Initialization (DI)
    ln_asmiau = .FALSE.   !  Logical switch for Incremental Analysis Updating (IAU)
    nitbkg    = 0          !  Timestep of background in [0,nitend-nit000-1]
    nitdin    = 0          !  Timestep of background for DI in [0,nitend-nit000-1]
    nitiaustr = 1          !  Timestep of start of IAU interval in [0,nitend-nit000-1]
    nitiaufin = 0 !  Timestep of end of IAU interval in [0,nitend-nit000-1]
    niaufn    = 0          !  Type of IAU weighting function
    ln_salfix = .false.    !  Logical switch for ensuring that the sa > salfixmin
    salfixmin = -9999      !  Minimum salinity after applying the increments
    nn_divdmp = 0 !  Number of iterations of divergence damping operator
/
&namtrj
   cn_dirtrj   = 'tam_trajectory'
   ln_trjhand = .false.
   nn_ittrjfrq = 0
   ln_trj_spl  = .TRUE.
/
!-----------------------------------------------------------------------
&nambias       ! Parameters for bias corrections #ifdef key_bias)
!-----------------------------------------------------------------------
    ln_bias     = .false..           ! activate bias correction
    ln_bias_asm = .false.          ! use assim bias
    ln_bias_rlx = .FALSE.            ! use clim-relax bias
    ln_bias_ofl = .false.       ! use off-line bias
    ln_bias_ts_app= .TRUE. ! apply bias to Temp/Sal directly
    ln_bias_pc_app= .TRUE.           ! apply bias to pressure gradient
    cn_bias_tot = 'bias_tot.nc'      !file name with bias file (restart)
    cn_bias_asm = 'bias_asm.nc'      !file name  "   "   from assim 
    ! dir and structures for offline bias (using fldread conventions) 
    cn_dir      = './'              
    sn_tbias_ofl=  'tbias_ofl', -1,'tbias', .true., .true., 'yearly'
    sn_sbias_ofl=  'sbias_ofl', -1,'sbias', .true., .true., 'yearly'
    bias_time_unit_asm = 86400 ! time unit of asm bias
    fb_t_asm    = 0.02 ! partition of total bias for T/S
    fb_t_rlx    = 1.                   ! "         "   "     "   in  T/S
    fb_t_ofl    = .1
    fb_p_rlx    = 1.             
    fb_p_asm    = 0.3           
    fb_p_ofl    = 1.             
    nn_inertial = 2       !0/1/2 0/sin(lat)**2/gausian
    gphit0      = 10  !length for guassian tappering
    fctamp      = 10.
    eft_rlx     = 1800.                 ! efolding time for rlx bias estimation
    eft_asm     = 1800.  ! efolding time for asm bias estimation 5y
    t_rlx_upd   = 0.05                  ! update fct rlx    bias  " (0. -> 1.)
    t_asm_upd   = 0.05 ! update fct assim  bias  " (0. -> 1.)
    lrst_biasr  =.false.         !force to read bias file at first time step
    capN2val    = 1.e-11     !if larger than 0, cap N2 min val (~1.e-6)
/
!-----------------------------------------------------------------------
&namsbc_wave   ! External fields from wave model
!-----------------------------------------------------------------------
!              !  file name  ! frequency (hours) ! variable  ! time interp. !  clim  ! 'yearly'/ ! weights  ! rotation !
!              !             !  (if <0  months)  !   name    !   (logical)  !  (T/F) ! 'monthly' ! filename ! pairing  !
   sn_cdg      = 'cdww'      , 6     , 'cdww'    ,  .false.    , .false., 'monthly' , ''       , ''  ! 
   cn_dir_cdg  = './'  !  root directory for the location of drag coefficient files
/
!-----------------------------------------------------------------------
&namsbc_waveparlim
!-----------------------------------------------------------------------
!              !  file name      ! frequency (hours) ! variable  ! time interp. !  clim  ! 'yearly'/ ! weights  ! rotation !
!                                !  (if <0  months)  !   name    !   (logical)  !  (T/F) ! 'monthly' ! filename ! pairing  !
   sn_strn   = 'istr'            ,     6          , 'icestrain'     ,   .true.    , .false. , 'monthly'  , ''       , ''
   cn_dir_waveparlim  = './'      !  root directory for the location of the ECWAM files
/
!-----------------------------------------------------------------------
&namdyn_nept  !   Neptune effect (simplified: lateral and vertical diffusions removed)
!-----------------------------------------------------------------------
   ! Suggested lengthscale values are those of Eby & Holloway (1994) for a coarse model
   ln_neptsimp       = .false.  ! yes/no use simplified neptune

   ln_smooth_neptvel = .false.  ! yes/no smooth zunep, zvnep
   rn_tslse          =  1.2e4   ! value of lengthscale L at the equator
   rn_tslsp          =  3.0e3   ! value of lengthscale L at the pole
   ! Specify whether to ramp down the Neptune velocity in shallow
   ! water, and if so the depth range controlling such ramping down
   ln_neptramp       = .true.   ! ramp down Neptune velocity in shallow water
   rn_htrmin         =  100.0   ! min. depth of transition range
   rn_htrmax         =  200.0   ! max. depth of transition range
/
!-----------------------------------------------------------------------
&namtam	!  TAM trajactory
!-----------------------------------------------------------------------
   cn_dirtrj   = 'tam_trajectory'
   ln_trjwri = .FALSE.
   nn_ittrjfrq = 1
   ln_trj_spl  = .TRUE.
/
!-----------------------------------------------------------------------
&namsbc_wavepar ! namsbc_wavepar  parameters from wave model (CCC not identical to namsbc_wave)
!-----------------------------------------------------------------------
!              !  file name      ! frequency (hours) ! variable  ! time interp. !  clim  ! 'yearly'/ ! weights  ! rotation !
!              !                               !  (if <0  months)  !   name    !   (logical)  !  (T/F) ! 'monthly' ! filename ! pairing  !
   sn_ust      = 'ust'            , 6     , 'ust'     ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_vst      = 'vst'            , 6     , 'vst'     ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_swh      = 'swh'            , 6     , 'swh'     ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_mwp      = 'mwp'            , 6     , 'mwp'     ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_wspd     = 'wspd'           , 6     , 'wspd'    ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_phioc    = 'phioc'          , 6     , 'phioc'   ,   .false.    , .false. , 'monthly'  , ''       , ''
   sn_tauoc    = 'tauoc'          , 6     , 'tauoc'   ,   .false.    , .false. , 'monthly'  , ''       , ''
   cn_dir_wavepar  = './'      !  root directory for the location of the ECWAM files
/
&namdebug
  jpig1=1072
  jpig2=1075
  jpjg1=65
  jpjg2=67
  jpkg1=1
  jpkg2=40
  kt1=1152
  kt2=1224
/
!-----------------------------------------------------------------------
&namstopack   !  Stochastic physics perturbation schemes
!-----------------------------------------------------------------------
   ln_stopack        =  .false.   ! Switch on SPPT scheme
                                   ! (requires ln_trd_tra & ln_trd_dyn TRUE)
   ln_stopack_restart   = .false.  ! Read from restart file previous perturbation
   nn_stopack_seed      = 123456,789012,345678,901234  ! Seeds
   ln_stopack_repr  = .true. ! reproducibility
                                   ! Should be FALSE the very first time
   nn_rndm_freq      = 6           ! Frequency of perturbation computation
   ln_distcoast      = .true.      ! Apply coastal smoothing of perturbations
				   ! If TRUE, STOPACK requires the file dist.coast.nc
				   ! to be available in the working directory
   rn_distcoast      = 50000.     ! Coastal smoothing scale (m)
   ln_stopack_diags  = .false.      ! Verbose output
   ln_stopack_debug  = .false.
!
!----------------- SPPT  SCHEME (Stochastically perturbed parametrization tendencies)
!

   sppt_step         = 2           ! SPPT step (0: beginning 1:  before ZVD; 2: after ZVD)
   ln_sppt_taumap    = .false.     ! Use map of decorr. time scale (non-homogeneous case)
                                   ! Requires a sppt_tau_map.nc file to be available.
   sppt_filter_pass  =  75         ! Number of filter passes to correlate in space
   nn_deftau         =  1          ! Definition of tau (1: days, 2:timesteps)
   rn_sppt_stdev     = 0.99        ! SPPT stdev
   rn_sppt_tau       = 1.0         ! Tau (in days, according to nn_deftau)
   nn_vwei           = 2           ! Vertical weight (0: No weight; 2: decrease perturbations
				   ! at the sea bottom)
!
   ln_sppt_traxad       = .false.  ! Switch for x advection
   ln_sppt_trayad       = .false.  ! Switch for y advection
   ln_sppt_trazad       = .false.  ! Switch for z advection
   ln_sppt_trasad       = .false.  ! Switch for z advection  (s- case)
   ln_sppt_traldf       = .false.  ! Switch for lateral diffusion
   ln_sppt_trazdf       = .false.  ! Switch for vertical diffusion
   ln_sppt_trazdfp      = .false.  ! Switch for pure vertical diffusion
   ln_sppt_traevd       = .false.  ! Switch for enhanced vertical diffusion
   ln_sppt_trabbc       = .false.  ! Switch for bottom boundary condition
   ln_sppt_trabbl       = .false.  ! Switch for bottom boundary layer
   ln_sppt_tranpc       = .false.  ! Switch for non-penetrative convection
   ln_sppt_tradmp       = .false.      ! Switch for tracer damping
   ln_sppt_traqsr       = .false.      ! Switch for solar radiation
   ln_sppt_transr       = .false.  ! Switch for non-solar radiation / freshwater flux
   ln_sppt_traatf       = .false.  ! Switch for Asselin time-filter
!
   rn_uv_infl           = 1.0      ! Inflation for SPPT on momentum
   ln_sppt_dynhpg       = .false.  ! Switch for x advection
   ln_sppt_dynspg       = .false.  ! Switch for y advection
   ln_sppt_dynkeg       = .false.  ! Switch for z advection
   ln_sppt_dynrvo       = .false.  ! Switch for z advection  (s- case)
   ln_sppt_dynpvo       = .false.  ! Switch for lateral diffusion
   ln_sppt_dynzad       =  .false.  ! Switch for vertical diffusion
   ln_sppt_dynldf       =  .false.  ! Switch for lateral diffusion
   ln_sppt_dynzdf       =  .false.  ! Switch for enhanced vertical diffusion
   ln_sppt_dynbfr       = .false.  ! Switch for bottom boundary condition
   ln_sppt_dynatf       = .false.  ! Switch for Asselin time-filter
!
   ln_sppt_glocon       = .false.  ! Global conservation option (not fully tested)
   nn_sppt_step_bound   = 2        ! Bound random deviates (1) or perturbations (2)
   rn_sppt_bound        = 0.999    ! Bound for gaussian random numbers
!
!----------------- SPPT ICE  SCHEME
!
   ln_sppt_icehdf  = .false.        ! Sea-ice (numerical) diffusivity
   ln_sppt_icelat  = .false.                     ! Sea-ice lateral accretion
   ln_sppt_icezdf  = .false.       ! Sea-ice vertical thermodyn.
!
!----------------- SPP  SCHEME (Stochastically perturbed parameters)
!
   ! SPP scheme
   ! 0 : off  ; 1 : Gaussian ; 2/3 Lognormal with mean/median (respectively)
   !            4,5,6 as 1,2,3 but with values bounded to [0,1]
   ! equal to the unperturbed value
!
   spp_filter_pass  = 300          ! Number of filter passes to correlate in space (SKEB)
   rn_spp_stdev     = 0.99         ! SPP stdev
   rn_spp_tau       = 10.00        ! SPP tau
!
!
! For each parameter, it is provided nn_spp_XXX which determines the distribution of the perturbation
! and rn_XXX_sd which determines the standard deviation, with XXX a certain parameter
!
! Values of nn_spp_XXX can be:
! 0 : SPP is off for such parameter ; 1 : Gaussian ; 2/3 Lognormal with mean/median (respectively)
! 1 : Purely Gaussian PDF, (1+N(0,s)) is multiplied to the unperturbed parameter
! 2 : Lognormal distribution with mean equal to the unperturbed parameter, exp(N(m1,s1)) to the unperturbed parameter
! 3 : Lognormal distribution with median equal to the unperturbed parameter, exp(N(m2,s2)) to the unperturbed parameter
! 4, 5, 6 are as 1,2,3 respectively but with values bounded to [0,1]
!
! Option 2 is recommended for every parameter, except relative wind for which 5 is suggested (bounded)
! A value of 0.1 for the standard deviation is reccomended for most parameter (10% averaged fluctuations)
! For parameters where uncertainty is large (horizontal diffusivity, relaxation coefficients) can be increased
!
!  MIXING section
!
   nn_spp_avt        = 0           ! Vertical mixing of tracers (TKE or GLS only)
   rn_avt_sd         = 0.3     !
   nn_spp_avm        = 0           ! Vertical mixing of momentum (TKE or GLS only)
   rn_avm_sd         = 0.1
!
   nn_spp_ahtu       = 0       ! Lateral diffusivity (working ONLY for key_traldf_c2d / key_traldf_c3d )
   rn_ahtu_sd        = 0.3    ! Otherwise the code aborts for nn_spp_ahtu+nn_spp_ahtv+nn_spp_ahtw+nn_spp_ahtt>0
   nn_spp_ahtv       = 0           ! ahtu/ahtv : for laplacian/iso operator
   rn_ahtv_sd        = 0.3
   nn_spp_ahtw       = 0           ! ahtw : for iso operator
   rn_ahtw_sd        = 0.3
   nn_spp_ahtt       = 0           ! ahtt : for bilaplacian operator
   rn_ahtt_sd        = 0.3
!
   nn_spp_ahm1       = 0      ! Lateral viscosity (working ONLY for key_dynldf_c2d / key_dynldf_c3d )
   rn_ahm1_sd        = 0.3    ! Otherwise the code aborts for nn_spp_ahm1+nn_spp_ahm2 > 0
   nn_spp_ahm2       = 0      ! It works for both laplacian (ahm1: hdiv, ahm2: rotor) or
   rn_ahm2_sd        = 0.3    ! and bilaplacian (ahm1: u, ahm2: v)
!
   nn_spp_arnf       = 0           ! Enhanced mixing at river mouths
   rn_arnf_sd        = 0.2         ! (if activated in NEMO with ln_rnf_mouth = .TRUE. )
!
   nn_spp_aevd       = 0           ! Enhanced vertical diffusion
   rn_aevd_sd        = 0.3         ! (if activated in NEMO with ln_zdfevd = .TRUE.)
!
!  TKE section
!
   nn_spp_tkelc      = 0           ! TKE : Langmuir cell coefficient
   rn_tkelc_sd       = 0.2 
   nn_spp_tkedf      = 0           ! TKE : Eddy diff. coefficient
   rn_tkedf_sd       = 0.
   nn_spp_tkeds      = 0           ! TKE : Kolmogoroff dissipation coeff.
   rn_tkeds_sd       = 0.2
   nn_spp_tkebb      = 0           ! TKE : Surface input of tke
   rn_tkebb_sd       = 0.
   nn_spp_tkefr      = 0           ! TKE : Fraction of srf TKE below ML
   rn_tkefr_sd       = 0.01
!
!  BBL section
!
   nn_spp_ahubbl      = 0      ! Diffusive bottom boundary layer:
   rn_ahubbl_sd       = 0.2        ! diffusivity parameter for u/v
   nn_spp_ahvbbl      = 0          ! Recommended: same values for both
   rn_ahvbbl_sd       = 0.2
!
!  SEA-ICE section
!
   nn_spp_icealb = 0           ! SEA-ICE : albedo and strength
   rn_icealb_sd  = 0.02        ! It works for both LIM2 and LIM3
   nn_spp_icestr = 0
   rn_icestr_sd  = 0.02
!
!  BOUNDARY section
!
   nn_spp_geot       = 0           ! Geothermal heating flux (if ln_trabbc = .TRUE. AND nn_geoflx > 0 )
   rn_geot_sd        = 0.005
   nn_spp_relw       = 0           ! Relative wind coefficient (Only for bulk CORE formulation, ln_blk_core = TRUE)
   rn_relw_sd        = 0.001
   nn_spp_dqdt       = 0           ! SST damping (if nn_sstr > 0 AND ln_ssr = TRUE)
   rn_dqdt_sd        = 0.5
   nn_spp_dedt       = 0           ! SSS damping (if nn_sssr > 0 AND ln_ssr = TRUE)
   rn_dedt_sd        = 0.5
!
   nn_spp_bfr        = 0           ! Bottom friction
   rn_bfr_sd         = 0.05 
!
   nn_spp_qsi0       = 0           ! Solar radiation penetration
   rn_qsi0_sd        = 0.05        !
!
!----------------- Stochastic Energy backscatter scheme (SKEB)
!

   ln_skeb           = .false.
   rn_skeb           = 0.5         ! backscatter ratio
   rn_kh             = -1.
                                   ! k_h^2 * dx * dy should be around 30 000 km2 
   nn_dcom_freq      = 3	   ! Frequency of e
   skeb_filter_pass  = 40          ! Number of filter passes to correlate in space (SEB)
   rn_skeb_stdev     = 1.0         ! SEB stdev
   rn_skeb_tau       = 0.5         ! SEB tau
   rn_kc             = -1.         ! k_h * dx * dy should be around 0.3km2
   nn_dconv          = 2	   ! Type of convection energy formulation
   rn_beta_num       = 0.004  ! Contribution of numerical dissipation to dissipated energy
   rn_beta_con       = 0.2         ! Contribution of convection dissipation to dissipated energy
   ln_skeb_tune      = .false.
/
!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
! OPA namelist for different output streams
! ----------------------------------------
!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
!
! options for output of instantaneous fields
! 
! in this example we use OUTSTREMS streams:
! Stream 1,  complete set, type=1 (avg), regular frequence FREQ1
! stream 2,  complet  set, type=1 (avg), FREQ2 (usually end of run)
! stream 3,  complet  set, type=1 (avg), FREQ3 (usually more frequent 2D flds)
! stream 4,  complet  set, type=0 (inst), FREQ4 (usually for debuging)
! nouttype=0 for instantaneous
!
&nam_io
    nstreams  = 3
    nouttype(1) = 1
    noutfreq(1) = 145
    lgridT(1) = .FALSE.
    lgridU(1) = .FALSE.
    lgridV(1) = .FALSE.
    lgridW(1) = .FALSE.
    lvotemper(1) = .TRUE.
    lvosaline(1) = .TRUE.
    lvottrdmp(1) = .TRUE.
    lvostrdmp(1) = .TRUE.
    lsosstsst(1) = .TRUE.
    lsosaline(1) = .TRUE.
    lsossheig(1) = .TRUE.
    lsostheig(1) = .TRUE.
    lsobpheig(1) = .TRUE.
    liowaflup(1) = .TRUE.
    lsowaflep(1) = .TRUE.
    lsowaflup(1) = .TRUE.
    lsorunoff(1) = .FALSE.
    lsowaflcd(1) = .FALSE.
    lsosalflx(1) = .TRUE.
    lsohefldo(1) = .TRUE.
    lsoshfldo(1) = .TRUE.
    lsomxl010(1) = .TRUE.
    lsomxl125(1) = .TRUE.
    lsomxl030(1) = .TRUE.
    lsomxlt05(1) = .TRUE.
    lsomxlt02(1) = .TRUE.
    lsomixhgt(1) = .TRUE.
    lsoicecov(1) = .TRUE.
    lsowafldp(1) = .TRUE.
    lsosafldp(1) = .TRUE.
    lsohefldp(1) = .TRUE.
    lsodsstmo(1) = .FALSE.
    lsodsstyy(1) = .FALSE.        
    lsowafldp(1) = .TRUE.
    lsosafldp(1) = .TRUE.
    lsosurfps(1) = .FALSE.
    lsobowlin(1) = .FALSE.
    lsothedep(1) = .TRUE.
    lso14chgt(1) = .TRUE.
    lso17chgt(1) = .TRUE.
    lso20chgt(1) = .TRUE.
    lso28chgt(1) = .TRUE.
    lso26chgt(1) = .TRUE.
    lsohtc300(1) = .TRUE.
    lsohtc700(1) = .TRUE.
    lsohtcbtm(1) = .TRUE.
    lsosal300(1) = .TRUE.
    lsosal700(1) = .TRUE.
    lsosalbtm(1) = .TRUE.
    lsoicetem(1) = .TRUE.
    lsoicealb(1) = .TRUE. 
    lvozocrte(1) = .TRUE.
    lsozocrte(1) = .FALSE.
    lsozotaue(1) = .TRUE.
    lvomecrtn(1) = .TRUE.
    lsomecrtn(1) = .FALSE.
    lsometaun(1) = .TRUE.
    lvozocrtx(1) = .TRUE.
    lvozoeivu(1) = .TRUE.
    lsozotaux(1) = .TRUE.
    lvomecrty(1) = .TRUE.
    lvomeeivv(1) = .TRUE.
    lsometauy(1) = .TRUE.
    lvovecrtz(1) = .TRUE.
    lvoveeivw(1) = .FALSE.
    lvotkeavt(1) = .FALSE.
    lvotkeevd(1) = .FALSE.
    lvotkeavm(1) = .FALSE.
    lvotkeevm(1) = .FALSE.
    lvoddmavs(1) = .FALSE.
    lsoleahtw(1) = .FALSE.
    lsoleaeiw(1) = .FALSE.
    lsohtc26c(1) = .FALSE.
    lsohtc26cd(1) = .FALSE.
    lvorotrot(1) = .false.
    lvodivdiv(1) = .false.
    nouttype(2) = 1
    noutfreq(2) = 1
    lgridT(2) = .TRUE.
    lgridU(2) = .TRUE.
    lgridV(2) = .TRUE.
    lgridW(2) = .TRUE.
    lmonthly(2)=.TRUE.
    lvotemper(2) = .TRUE.
    lvosaline(2) = .TRUE.
    lvosigmat(2) = .TRUE.
    lvottrdmp(2) = .FALSE.
    lvostrdmp(2) = .FALSE.
    lvotbiasd(2) = .FALSE.
    lvosbiasd(2) = .FALSE.
    lvotbiasp(2) = .FALSE.
    lvosbiasp(2) = .FALSE.
    lvorbiasp(2) = .FALSE.
    lsosstsst(2) = .TRUE.
    lsosaline(2) = .TRUE.
    lsossheig(2) = .TRUE.
    lsostheig(2) = .TRUE.
    lsobpheig(2) = .TRUE.
    liowaflup(2) = .TRUE.
    lsowaflep(2) = .TRUE.
    lsowaflup(2) = .TRUE.
    lsorunoff(2) = .TRUE.
    lsowaflcd(2) = .TRUE.
    lsosalflx(2) = .TRUE.
    lsohefldo(2) = .TRUE.
    lsoshfldo(2) = .TRUE.
    lsomxl010(2) = .TRUE.
    lsomxl125(2) = .TRUE.
    lsomxl030(2) = .TRUE.
    lsomxlt05(2) = .TRUE.
    lsomxlt02(2) = .TRUE.
    lsomixhgt(2) = .TRUE.
    lsoicecov(2) = .TRUE.
    lsowafldp(2) = .TRUE.
    lsosafldp(2) = .TRUE.
    lsohefldp(2) = .TRUE.
    lsodsstmo(2) = .FALSE.
    lsodsstyy(2) = .FALSE.       
    lsowafldp(2) = .TRUE.
    lsosafldp(2) = .TRUE.
    lsosurfps(2) = .FALSE.
    lsobowlin(2) = .FALSE.
    lsothedep(2) = .TRUE.
    lso14chgt(2) = .TRUE.
    lso17chgt(2) = .TRUE.
    lso20chgt(2) = .TRUE.
    lso28chgt(2) = .TRUE.
    lso26chgt(2) = .TRUE.
    lsohtc300(2) = .TRUE.
    lsohtc700(2) = .TRUE.
    lsohtcbtm(2) = .TRUE.
    lsosal300(2) = .TRUE.
    lsosal700(2) = .TRUE.
    lsosalbtm(2) = .TRUE.
    lsoicetem(2) = .TRUE.
    lsoicealb(2) = .TRUE.
    lvozocrte(2) = .TRUE.
    lsozocrte(2) = .TRUE.
    lsozotaue(2) = .TRUE.
    lvomecrtn(2) = .TRUE.
    lsomecrtn(2) = .TRUE.
    lsometaun(2) = .TRUE.
    lvozocrtx(2) = .TRUE.
    lvozoeivu(2) = .FALSE.
    lsozotaux(2) = .TRUE.
    lvomecrty(2) = .TRUE.
    lvomeeivv(2) = .FALSE.
    lsometauy(2) = .TRUE.
    lvovecrtz(2) = .TRUE.
    lvoveeivw(2) = .FALSE.
    lvotkeavt(2) = .FALSE.
    lvotkeevd(2) = .FALSE.
    lvotkeavm(2) = .FALSE.
    lvotkeevm(2) = .FALSE.
    lvoddmavs(2) = .FALSE.
    lsoleahtw(2) = .FALSE.
    lsoleaeiw(2) = .FALSE.
    lsohtc26c(2) = .FALSE.
    lsohtc26cd(2) = .FALSE.
    lvorotrot(2) = .false.
    lvodivdiv(2) = .false.
    nouttype(3) = 1
    noutfreq(3) = 72
    lgridT(3) = .TRUE.
    lgridU(3) = .TRUE.
    lgridV(3) = .TRUE.
    lgridW(3) = .FALSE.
    lvotemper(3) = .FALSE.
    lvosaline(3) = .FALSE.
    lvosigmat(3) = .FALSE.
    lvottrdmp(3) = .FALSE.
    lvostrdmp(3) = .FALSE.
    lsosstsst(3) = .TRUE.
    lsosaline(3) = .TRUE.
    lsossheig(3) = .TRUE.
    lsostheig(3) = .FALSE.
    lsobpheig(3) = .FALSE.
    liowaflup(3) = .FALSE.
    lsowaflep(3) = .FALSE.
    lsowaflup(3) = .TRUE.
    lsorunoff(3) = .FALSE.
    lsowaflcd(3) = .FALSE.
    lsosalflx(3) = .FALSE.
    lsohefldo(3) = .TRUE.
    lsoshfldo(3) = .TRUE.
    lsomxl010(3) = .TRUE.
    lsomxl125(3) = .TRUE.
    lsomxl030(3) = .TRUE.
    lsomxlt05(3) = .TRUE.
    lsomxlt02(3) = .TRUE.
    lsomixhgt(3) = .FALSE.
    lsoicecov(3) = .TRUE.
    lsowafldp(3) = .FALSE.
    lsosafldp(3) = .FALSE.
    lsohefldp(3) = .FALSE.
    lsodsstmo(3) = .FALSE. 
    lsodsstyy(3) = .FALSE.       
    lsowafldp(3) = .FALSE.
    lsosafldp(3) = .FALSE.
    lsosurfps(3) = .FALSE.
    lsobowlin(3) = .FALSE.
    lsothedep(3) = .TRUE.
    lso14chgt(3) = .TRUE.
    lso17chgt(3) = .TRUE.
    lso20chgt(3) = .TRUE.
    lso28chgt(3) = .TRUE.
    lso26chgt(3) = .TRUE.
    lsohtc300(3) = .TRUE.
    lsohtc700(3) = .TRUE.
    lsohtcbtm(3) = .TRUE.
    lsosal300(3) = .TRUE.
    lsosal700(3) = .TRUE.
    lsosalbtm(3) = .TRUE.
    lsoicetem(3) = .FALSE.
    lsoicealb(3) = .FALSE.
    lvozocrte(3) = .FALSE.
    lsozocrtx(3) = .TRUE.
    lsozocrte(3) = .TRUE.
    lsozotaue(3) = .TRUE.
    lvomecrtn(3) = .FALSE.
    lsomecrty(3) = .TRUE.
    lsomecrtn(3) = .TRUE.
    lsometaun(3) = .TRUE.
    lvozocrtx(3) = .FALSE.
    lvozoeivu(3) = .FALSE.
    lsozotaux(3) = .TRUE.
    lvomecrty(3) = .FALSE.
    lvomeeivv(3) = .FALSE.
    lsometauy(3) = .TRUE.
    lvovecrtz(3) = .FALSE.
    lvoveeivw(3) = .FALSE.
    lvotkeavt(3) = .FALSE.
    lvotkeevd(3) = .FALSE.
    lvotkeavm(3) = .FALSE.
    lvotkeevm(3) = .FALSE.
    lvoddmavs(3) = .FALSE.
    lsoleahtw(3) = .FALSE.
    lsoleaeiw(3) = .FALSE.
    lsocplsst(3) = .TRUE.
    lsohtc26c(3) = .TRUE.
    lsohtc26cd(3) = .TRUE.
    nouttype(4) = 0
    noutfreq(4) = 145
    lgridT(4) = .FALSE.
    lgridU(4) = .FALSE.
    lgridV(4) = .FALSE.
    lgridW(4) = .FALSE.
    lvotemper(4) = .FALSE.
    lvosaline(4) = .FALSE.
    lvottrdmp(4) = .FALSE.
    lvostrdmp(4) = .FALSE.
    lsosstsst(4) = .TRUE.
    lsosaline(4) = .TRUE.
    lsossheig(4) = .TRUE.
    liowaflup(4) = .FALSE.
    lsowaflep(4) = .FALSE.
    lsowaflup(4) = .FALSE.
    lsorunoff(4) = .FALSE.
    lsowaflcd(4) = .FALSE.
    lsosalflx(4) = .FALSE.
    lsohefldo(4) = .FALSE.
    lsoshfldo(4) = .FALSE.
    lsomxl010(4) = .FALSE.
    lsomxl125(4) = .FALSE.
    lsomxl030(4) = .FALSE.
    lsomxlt05(4) = .FALSE.
    lsomxlt02(4) = .FALSE.
    lsomixhgt(4) = .FALSE.
    lsoicecov(4) = .FALSE.
    lsowafldp(4) = .FALSE.
    lsosafldp(4) = .FALSE.
    lsohefldp(4) = .FALSE.
    lsodsstmo(4) = .FALSE.   
    lsodsstyy(4) = .FALSE.      
    lsowafldp(4) = .FALSE.
    lsosafldp(4) = .FALSE.
    lsosurfps(4) = .FALSE.
    lsobowlin(4) = .FALSE.
    lsothedep(4) = .FALSE.
    lso20chgt(4) = .FALSE.
    lso28chgt(4) = .FALSE.
    lsohtc300(4) = .FALSE.
    lsoicetem(4) = .FALSE.
    lsoicealb(4) = .FALSE.
    lvozocrte(4) = .FALSE.
    lsozocrte(4) = .FALSE.
    lsozotaue(4) = .FALSE.
    lvomecrtn(4) = .FALSE.
    lsomecrtn(4) = .FALSE.
    lsometaun(4) = .FALSE
    lvozocrtx(4) = .FALSE.
    lvozoeivu(4) = .FALSE.
    lsozotaux(4) = .FALSE.
    lvomecrty(4) = .FALSE.
    lvomeeivv(4) = .FALSE.
    lsometauy(4) = .FALSE.
    lvovecrtz(4) = .FALSE.
    lvoveeivw(4) = .FALSE.
    lvotkeavt(4) = .FALSE.
    lvotkeevd(4) = .FALSE.
    lvotkeavm(4) = .FALSE.
    lvotkeevm(4) = .FALSE.
    lvoddmavs(4) = .FALSE.
    lsoleahtw(4) = .FALSE.
    lsoleaeiw(4) = .FALSE.
    lsohtc26c(4) = .TRUE.
    lsohtc26cd(4) = .TRUE.
    nouttype(5) = 2
    noutfreq(5) = 72
    lgridT(5) = .TRUE.
    lgridU(5) = .TRUE.
    lgridV(5) = .TRUE.
    lgridW(5) = .TRUE.
    lvotemper(5) = .FALSE.
    lvosaline(5) = .FALSE.
    lsosstsst(5) = .TRUE.
    lsosaline(5) = .TRUE.
    lsossheig(5) = .TRUE.
    lsostheig(5) = .FALSE.
    lsobpheig(5) = .FALSE.
    liowaflup(5) = .FALSE.
    lsowaflep(5) = .FALSE.
    lsowaflup(5) = .FALSE.
    lsorunoff(5) = .FALSE.
    lsowaflcd(5) = .FALSE.
    lsosalflx(5) = .FALSE.
    lsohefldo(5) = .FALSE.
    lsoshfldo(5) = .FALSE.
    lsomxl010(5) = .TRUE.
    lsomxlt05(5) = .TRUE.
    lsomixhgt(5) = .TRUE.
    lsoicecov(5) = .FALSE.
    lsowindsp(5) = .TRUE.
    lsowafldp(5) = .FALSE.
    lsosafldp(5) = .FALSE.
    lsohefldp(5) = .FALSE.
    lsowafldp(5) = .FALSE.
    lsosafldp(5) = .FALSE.
    lsosurfps(5) = .FALSE.
    lsobowlin(5) = .FALSE.
    lsothedep(5) = .FALSE.
    lso20chgt(5) = .FALSE.
    lso28chgt(5) = .FALSE.
    lso26chgt(5) = .FALSE.
    lsohtc300(5) = .FALSE.
    lsohtc700(5) = .FALSE.
    lsohtcbtm(5) = .FALSE.
    lsosal300(5) = .FALSE.
    lsosal700(5) = .FALSE.
    lsosalbtm(5) = .FALSE.
    lsoicetem(5) = .FALSE.
    lsoicealb(5) = .FALSE.
    lsomxl125(5) = .FALSE.
    lsomxl030(5) = .FALSE.
    lsomxlt02(5) = .FALSE.
    lso14chgt(5) = .FALSE.
    lso17chgt(5) = .FALSE.
    lvozocrte(5) = .FALSE.
    lsozocrte(5) = .TRUE.
    lsozotaue(5) = .TRUE.
    lvomecrtn(5) = .FALSE.
    lsomecrtn(5) = .TRUE.
    lsometaun(5) = .TRUE.
    lvozocrtx(5) = .FALSE.
    lvozoeivu(5) = .FALSE.
    lsozocrtx(5) = .TRUE.
    lsozoeivu(5) = .FALSE.
    lsozotaux(5) = .FALSE.
    lvomecrty(5) = .FALSE.
    lvomeeivv(5) = .FALSE.
    lsomecrty(5) = .TRUE.
    lsomeeivv(5) = .FALSE.
    lsometauy(5) = .FALSE.
    lvovecrtz(5) = .FALSE.
    lvoveeivw(5) = .FALSE.
    lvotkeavt(5) = .FALSE.
    lvotkeevd(5) = .FALSE.
    lvotkeavm(5) = .FALSE.
    lvotkeevm(5) = .FALSE.
    lvoddmavs(5) = .FALSE.
    lsoleahtw(5) = .FALSE.
    lsoleaeiw(5) = .FALSE.
    lsolhflup(5) = .FALSE.
    lsolwfldo(5) = .FALSE.
    lsosbhfup(5) = .FALSE.
    lvottrdmp(5) = .FALSE.
    lvostrdmp(5) = .FALSE.
    lvotbiasd(5) = .FALSE.
    lvosbiasd(5) = .FALSE.
    lvotbiasp(5) = .FALSE.
    lvosbiasp(5) = .FALSE.
    lvorbiasp(5) = .FALSE.
    lvosigmat(5) = .FALSE.
    lvostcoru(5) = .FALSE.
    lvostcorv(5) = .FALSE.
    lsocdn10(5)  = .FALSE.
    lvotke(5)    = .FALSE.
    lsotke(5)    = .TRUE.
    lsotke0(5)   = .FALSE.
    lsotkedfac(5)= .FALSE.
    lsoicestrn(5)= .FALSE.
    lsoswh(5)    = .FALSE.
    lsomwp(5)    = .FALSE.
    lsophioc(5)  = .FALSE.
    lsotauoc(5)  = .FALSE.
    lsowndmwam(5)= .FALSE.
    lsophifwam(5)= .FALSE.
    lsoutauwam(5)= .FALSE.
    lsovtauwam(5)= .FALSE.
    lsfqns_tot(5)= .FALSE.
    lsfqns_ice(5)= .FALSE.
    lsfqsr_tot(5)= .FALSE.
    lsfqsr_ice(5)= .FALSE.
    lsfemp_tot(5)= .FALSE.
    lsfemp_ice(5)= .FALSE.
    lsfdqdns_ice(5)= .FALSE.
    lsfsprecip(5)= .FALSE.
    lsfutau(5)   = .FALSE.
    lsfvtau(5)   = .FALSE.
    lsfutau_ice(5)= .FALSE.
    lsfvtau_ice(5)= .FALSE.
    lsfqns(5)    = .FALSE.
    lsfqsr(5)    = .FALSE.
    lsfemp(5)    = .FALSE.
    lsfswh(5)    = .FALSE.
    lsfmwp(5)    = .FALSE.
    lsfphioc(5)  = .FALSE.
    lsftauoc(5)  = .FALSE.
    lsfustokes(5)= .FALSE.
    lsfvstokes(5)= .FALSE.
    lsfutauwam(5)= .FALSE.
    lsfvtauwam(5)= .FALSE.
    lsfwndmwam(5)= .FALSE.
    lsfphifwam(5)= .FALSE.
    lsfstrn(5)   = .FALSE.
    lsfall(5)    = .FALSE.
    lsocplsst(5) = .TRUE.
    lsohtc26c(5) = .FALSE.
    lsohtc26cd(5) = .FALSE.
    nouttype(6) = 3
    noutfreq(6) = 72
    lgridT(6) = .TRUE.
    lgridU(6) = .TRUE.
    lgridV(6) = .TRUE.
    lgridW(6) = .TRUE.
    lvotemper(6) = .FALSE.
    lvosaline(6) = .FALSE.
    lsosstsst(6) = .TRUE.
    lsosaline(6) = .TRUE.
    lsossheig(6) = .TRUE.
    lsostheig(6) = .FALSE.
    lsobpheig(6) = .FALSE.
    liowaflup(6) = .FALSE.
    lsowaflep(6) = .FALSE.
    lsowaflup(6) = .FALSE.
    lsorunoff(6) = .FALSE.
    lsowaflcd(6) = .FALSE.
    lsosalflx(6) = .FALSE.
    lsohefldo(6) = .FALSE.
    lsoshfldo(6) = .FALSE.
    lsomxl010(6) = .TRUE.
    lsomxlt05(6) = .TRUE.
    lsomixhgt(6) = .TRUE.
    lsoicecov(6) = .FALSE.
    lsowindsp(6) = .TRUE.
    lsowafldp(6) = .FALSE.
    lsosafldp(6) = .FALSE.
    lsohefldp(6) = .FALSE.
    lsowafldp(6) = .FALSE.
    lsosafldp(6) = .FALSE.
    lsosurfps(6) = .FALSE.
    lsobowlin(6) = .FALSE.
    lsothedep(6) = .FALSE.
    lso20chgt(6) = .FALSE.
    lso28chgt(6) = .FALSE.
    lso26chgt(6) = .FALSE.
    lsohtc300(6) = .FALSE.
    lsohtc700(6) = .FALSE.
    lsohtcbtm(6) = .FALSE.
    lsosal300(6) = .FALSE.
    lsosal700(6) = .FALSE.
    lsosalbtm(6) = .FALSE.
    lsoicetem(6) = .FALSE.
    lsoicealb(6) = .FALSE.
    lsomxl125(6) = .FALSE.
    lsomxl030(6) = .FALSE.
    lsomxlt02(6) = .FALSE.
    lso14chgt(6) = .FALSE.
    lso17chgt(6) = .FALSE.
    lvozocrte(6) = .FALSE.
    lsozocrte(6) = .TRUE.
    lsozotaue(6) = .TRUE.
    lvomecrtn(6) = .FALSE.
    lsomecrtn(6) = .TRUE.
    lsometaun(6) = .TRUE.
    lvozocrtx(6) = .FALSE.
    lvozoeivu(6) = .FALSE.
    lsozocrtx(6) = .TRUE.
    lsozoeivu(6) = .FALSE.
    lsozotaux(6) = .FALSE.
    lvomecrty(6) = .FALSE.
    lvomeeivv(6) = .FALSE.
    lsomecrty(6) = .TRUE.
    lsomeeivv(6) = .FALSE.
    lsometauy(6) = .FALSE.
    lvovecrtz(6) = .FALSE.
    lvoveeivw(6) = .FALSE.
    lvotkeavt(6) = .FALSE.
    lvotkeevd(6) = .FALSE.
    lvotkeavm(6) = .FALSE.
    lvotkeevm(6) = .FALSE.
    lvoddmavs(6) = .FALSE.
    lsoleahtw(6) = .FALSE.
    lsoleaeiw(6) = .FALSE.
    lsolhflup(6) = .FALSE.
    lsolwfldo(6) = .FALSE.
    lsosbhfup(6) = .FALSE.
    lvottrdmp(6) = .FALSE.
    lvostrdmp(6) = .FALSE.
    lvotbiasd(6) = .FALSE.
    lvosbiasd(6) = .FALSE.
    lvotbiasp(6) = .FALSE.
    lvosbiasp(6) = .FALSE.
    lvorbiasp(6) = .FALSE.
    lvosigmat(6) = .FALSE.
    lvostcoru(6) = .FALSE.
    lvostcorv(6) = .FALSE.
    lsocdn10(6)  = .FALSE.
    lvotke(6)    = .FALSE.
    lsotke(6)    = .TRUE.
    lsotke0(6)   = .FALSE.
    lsotkedfac(6)= .FALSE.
    lsoicestrn(6)= .FALSE.
    lsoswh(6)    = .FALSE.
    lsomwp(6)    = .FALSE.
    lsophioc(6)  = .FALSE.
    lsotauoc(6)  = .FALSE.
    lsowndmwam(6)= .FALSE.
    lsophifwam(6)= .FALSE.
    lsoutauwam(6)= .FALSE.
    lsovtauwam(6)= .FALSE.
    lsfqns_tot(6)= .FALSE.
    lsfqns_ice(6)= .FALSE.
    lsfqsr_tot(6)= .FALSE.
    lsfqsr_ice(6)= .FALSE.
    lsfemp_tot(6)= .FALSE.
    lsfemp_ice(6)= .FALSE.
    lsfdqdns_ice(6)= .FALSE.
    lsfsprecip(6)= .FALSE.
    lsfutau(6)   = .FALSE.
    lsfvtau(6)   = .FALSE.
    lsfutau_ice(6)= .FALSE.
    lsfvtau_ice(6)= .FALSE.
    lsfqns(6)    = .FALSE.
    lsfqsr(6)    = .FALSE.
    lsfemp(6)    = .FALSE.
    lsfswh(6)    = .FALSE.
    lsfmwp(6)    = .FALSE.
    lsfphioc(6)  = .FALSE.
    lsftauoc(6)  = .FALSE.
    lsfustokes(6)= .FALSE.
    lsfvstokes(6)= .FALSE.
    lsfutauwam(6)= .FALSE.
    lsfvtauwam(6)= .FALSE.
    lsfwndmwam(6)= .FALSE.
    lsfphifwam(6)= .FALSE.
    lsfstrn(6)   = .FALSE.
    lsfall(6)    = .FALSE.
    lsocplsst(6) = .TRUE.
    lsohtc26c(6) = .FALSE.
    lsohtc26cd(6) = .FALSE.
    nouttype(7) = 0
    noutfreq(7) = 145
    lgridT(7) = .TRUE.
    lgridU(7) = .TRUE.
    lgridV(7) = .TRUE.
    lgridW(7) = .FALSE.
    lmonthly(7)  = .FALSE.
    lvotemper(7) = .FALSE.
    lvosaline(7) = .FALSE.
    lsosstsst(7) = .FALSE.
    lsosaline(7) = .FALSE.
    lsossheig(7) = .FALSE.
    lsostheig(7) = .FALSE.
    lsobpheig(7) = .FALSE.
    lsowaflup(7) = .TRUE.
    lsowaflep(7) = .FALSE.
    liowaflup(7) = .FALSE.
    lsorunoff(7) = .TRUE.
    lsowaflcd(7) = .FALSE.
    lsosalflx(7) = .FALSE.
    lsohefldo(7) = .TRUE.
    lsoshfldo(7) = .TRUE.
    lsomxl010(7) = .FALSE.
    lsomxlt05(7) = .FALSE.
    lsomixhgt(7) = .FALSE.
    lsomxl125(7) = .FALSE.
    lsomxl030(7) = .FALSE.
    lsomxlt02(7) = .FALSE.
    lsomxkara(7) = .FALSE.
    lsoicecov(7) = .FALSE.
    lsowindsp(7) = .TRUE.
    lsowafldp(7) = .FALSE.
    lsosafldp(7) = .FALSE.
    lsohefldp(7) = .FALSE.
    lsodsstmo(7) = .FALSE.
    lsodsstyy(7) = .FALSE.	    	    
    lsowafldp(7) = .FALSE.
    lsosafldp(7) = .FALSE.
    lsosurfps(7) = .FALSE.
    lsobowlin(7) = .FALSE.
    lsothedep(7) = .FALSE.
    lso14chgt(7) = .FALSE.
    lso17chgt(7) = .FALSE.
    lso20chgt(7) = .FALSE.
    lso28chgt(7) = .FALSE.
    lso26chgt(7) = .FALSE.
    lsohtc300(7) = .FALSE.
    lsohtc700(7) = .FALSE.
    lsohtcbtm(7) = .FALSE.
    lsosal300(7) = .FALSE.
    lsosal700(7) = .FALSE.
    lsosalbtm(7) = .FALSE.
    lsoicetem(7) = .FALSE.
    lsoicealb(7) = .FALSE.
    lvozocrte(7) = .FALSE.
    lsozocrte(7) = .FALSE.
    lsozotaue(7) = .TRUE.
    lvomecrtn(7) = .FALSE.
    lsomecrtn(7) = .FALSE.
    lsometaun(7) = .TRUE.
    lvozocrtx(7) = .FALSE.
    lvozoeivu(7) = .FALSE.
    lsozocrtx(7) = .FALSE.
    lsozoeivu(7) = .FALSE.
    lsozotaux(7) = .TRUE.
    lvomecrty(7) = .FALSE.
    lvomeeivv(7) = .FALSE.
    lsomecrty(7) = .FALSE.
    lsomeeivv(7) = .FALSE.
    lsometauy(7) = .TRUE.
    lvovecrtz(7) = .FALSE.
    lvoveeivw(7) = .FALSE.
    lvotkeavt(7) = .FALSE.
    lvotkeevd(7) = .FALSE.
    lvotkeavm(7) = .FALSE.
    lvotkeevm(7) = .FALSE.
    lvoddmavs(7) = .FALSE.
    lsoleahtw(7) = .FALSE.
    lsoleaeiw(7) = .FALSE.
    lsolhflup(7) = .FALSE.
    lsolwfldo(7) = .FALSE.
    lsosbhfup(7) = .FALSE.
    lvottrdmp(7) = .FALSE.
    lvostrdmp(7) = .FALSE.
    lvotbiasd(7) = .FALSE.
    lvosbiasd(7) = .FALSE.
    lvotbiasp(7) = .FALSE.
    lvosbiasp(7) = .FALSE.
    lvorbiasp(7) = .FALSE.
    lvosigmat(7) = .FALSE.
    lvostcoru(7) = .FALSE.
    lvostcorv(7) = .FALSE.
    lsocdn10(7)  = .TRUE.
    lvotke(7)    = .FALSE.
    lsotke(7)    = .FALSE.
    lsotke0(7)   = .FALSE.
    lsotkedfac(7)= .FALSE.
    lsoicestrn(7)= .FALSE.
    lsoswh(7)    = .TRUE.
    lsomwp(7)    = .TRUE.
    lsophioc(7)  = .TRUE.
    lsotauoc(7)  = .TRUE.
    lsowndmwam(7)= .TRUE.
    lsophifwam(7)= .TRUE.
    lsoutauwam(7)= .TRUE.
    lsovtauwam(7)= .TRUE.
    lsfqns_tot(7)= .TRUE.
    lsfqns_ice(7)= .TRUE.
    lsfqsr_tot(7)= .TRUE.
    lsfqsr_ice(7)= .TRUE.
    lsfemp_tot(7)= .TRUE.
    lsfemp_ice(7)= .TRUE.
    lsfdqdns_ice(7)= .TRUE.
    lsfsprecip(7)= .TRUE.
    lsfutau(7)   = .TRUE.
    lsfvtau(7)   = .TRUE.
    lsfutau_ice(7)= .TRUE.
    lsfvtau_ice(7)= .TRUE.
    lsfqns(7)    = .TRUE.
    lsfqsr(7)    = .TRUE.
    lsfemp(7)    = .TRUE.
    lsfswh(7)    = .TRUE.
    lsfmwp(7)    = .TRUE.
    lsfphioc(7)  = .TRUE.
    lsftauoc(7)  = .TRUE.
    lsfustokes(7)= .TRUE.
    lsfvstokes(7)= .TRUE.
    lsfutauwam(7)= .TRUE.
    lsfvtauwam(7)= .TRUE.
    lsfwndmwam(7)= .TRUE.
    lsfphifwam(7)= .TRUE.
    lsfstrn(7)   = .TRUE.
    lsfall(7)    = .TRUE.
    lsohtc26c(7) = .FALSE.
    lsohtc26cd(7) = .FALSE.
    cstreampath(1) = "/ec/fws5/sb/work/rd/paxp/hz9n/LWDA/2020012000/gfc/nemo_output/"   !  path for output
    cstreampath(2) = "/ec/fws5/sb/work/rd/paxp/hz9n/LWDA/2020012000/gfc/nemo_output/"   !  path for output
    cstreampath(3) = "/ec/fws5/sb/work/rd/paxp/hz9n/LWDA/2020012000/gfc/nemo_output/"   !  path for output
    cstreampath(4) = "/ec/fws5/sb/work/rd/paxp/hz9n/LWDA/2020012000/gfc/nemo_output/"   !  path for output
    cstreampath(5) = "/ec/fws5/sb/work/rd/paxp/hz9n/LWDA/2020012000/gfc/nemo_output/"   !  path for output
    cstreampath(6) = "/ec/fws5/sb/work/rd/paxp/hz9n/LWDA/2020012000/gfc/nemo_output/"   !  path for output
    cstreampath(7) = "/ec/fws5/sb/work/rd/paxp/hz9n/LWDA/2020012000/gfc/nemo_output/"   !  path for output
    ln_nc4zip_stream(1) = false
    ln_nc4zip_stream(2) = false
    ln_nc4zip_stream(3) = false
    ln_nc4zip_stream(4) = false
    ln_nc4zip_stream(5) = false
    ln_nc4zip_stream(6) = false
    ln_nc4zip_stream(7) = false
    nn_nchunks_k_stream(3) = 1
    nn_nchunks_k_stream(4) = 1
    nn_nchunks_k_stream(5) = 1
    nn_nchunks_k_stream(6) = 1
    nn_nchunks_k_stream(7) = 1
/

