# definition of the ecmwf_mos suite
suite ecmwf_mos
#  edit USER               '<ENTER USERNAME>'
  edit ECF_PORT           '34159'
  edit ecmwf_mos_ver      'v1.2'
  edit ENVIR              'dev'
  edit MACHINE_SITE       'development'
  edit ECF_ROOT           '/lfs/h1/mdl/mos/noscrub/<ENTER USERNAME>/ecFlow'
  edit ECF_INCLUDE        '/lfs/h1/mdl/mos/noscrub/<ENTER USERNAME>/ecFlow/include'
  edit DATAROOT           '/lfs/h1/mdl/stmp/<ENTER USERNAME>/qprod'
  edit COM                '/lfs/h1/mdl/ptmp/<ENTER USERNAME>/qprod'
  edit COMROOT            '/lfs/h1/mdl/ptmp/<ENTER USERNAME>/qprod'
  family v1.2
    defstatus complete
    edit PACKAGE_ROOT     '/lfs/h1/mdl/mos/noscrub/<ENTER USERNAME>/mos-oper'
    edit PACKAGE_HOME     '/lfs/h1/mdl/mos/noscrub/<ENTER USERNAME>/mos-oper/ecmwf_mos/branches/wcoss2'
    edit PACKAGEHOME      '/lfs/h1/mdl/mos/noscrub/<ENTER USERNAME>/mos-oper/ecmwf_mos/branches/wcoss2'
    edit HOMEmdl          '%PACKAGE_HOME%'
    edit HOMEcode         '%PACKAGE_HOME%'
    edit MACHINE          'p3-dev'
    edit QUEUE            'dev'
    edit KEEPDATA         'NO'
    edit ECF_FILES        '%PACKAGE_HOME%/ecf'
    edit ECF_SCRIPT       '%PACKAGE_HOME%/ecf'
    edit PROJ             'MOS'
    edit PROJENVIR        'DEV'
    edit COMROOT          '/lfs/h1/mdl/ptmp/<ENTER USERNAME>/qprod'
    edit CWD              '/lfs/h1/mdl/stmp/<ENTER USERNAME>/qprod'
    edit DATAROOT         '/lfs/h1/mdl/stmp/<ENTER USERNAME>/qprod'
    edit OUTPUTDIR        '/lfs/h1/mdl/ptmp/<ENTER USERNAME>/output/%ENVIR%'
    edit NTASK            '1'
    edit PTILE            '1'
    edit OMP_NUM_THREADS  '1'
    edit NODES            '1'
    family 00z
      edit CYC '00'
#      cron 06:00
      family datachk
         task datachk
         task datachk23
         task ext_datachk
         task ext_datachk23
         task ens_datachk
      endfamily
      task jecmwf_mos_prep
        trigger datachk/datachk == complete
      task jecmwf_mos_forecast
        edit NTASK        '2'
        edit PTILE        '2'
        trigger jecmwf_mos_prep == complete
      task jecmwf_mos_stations_prdgen
        trigger jecmwf_mos_forecast == complete
      task jecmwf_mos_ext_prep
        trigger datachk/ext_datachk == complete
      task jecmwf_mos_ext_forecast
        edit NTASK        '2'
        edit PTILE        '2'
        trigger jecmwf_mos_ext_prep == complete and jecmwf_mos_forecast == complete and jecmwf_mos_stations_prdgen == complete
      task jecmwf_mos_stations_ext_prdgen
        trigger jecmwf_mos_ext_forecast == complete and jecmwf_mos_stations_prdgen == complete
      task jecmwf_mos_prep23
        trigger datachk/datachk23 == complete
      task jecmwf_mos_ext_prep23
        trigger datachk/ext_datachk23 == complete
      task jecmwf_mos_stations_ens_fcst
         edit NTASK       '51'
         edit PTILE       '51'
         trigger datachk/ens_datachk == complete
      task jecmwf_mos_stations_ens_stats
         trigger jecmwf_mos_stations_ens_fcst == complete
      task jecmwf_mos_stations_ens_prdgen
         trigger jecmwf_mos_stations_ens_stats == complete
    endfamily
    family 12z
      edit CYC '12'
#      cron 18:00
      family datachk
         task datachk
         task datachk23
         task ext_datachk
         task ext_datachk23
         task ens_datachk
      endfamily
      task jecmwf_mos_prep
        trigger datachk/datachk == complete
      task jecmwf_mos_forecast
        edit NTASK        '2'
        edit PTILE        '2'
        trigger jecmwf_mos_prep == complete
      task jecmwf_mos_stations_prdgen
        trigger jecmwf_mos_forecast == complete
      task jecmwf_mos_ext_prep
        trigger datachk/ext_datachk == complete
      task jecmwf_mos_ext_forecast
        edit NTASK        '2'
        edit PTILE        '2'
        trigger jecmwf_mos_ext_prep == complete and jecmwf_mos_forecast == complete and jecmwf_mos_stations_prdgen == complete
      task jecmwf_mos_stations_ext_prdgen
        trigger jecmwf_mos_ext_forecast == complete and jecmwf_mos_stations_prdgen == complete
      task jecmwf_mos_prep23
        trigger datachk/datachk23 == complete
      task jecmwf_mos_ext_prep23
        trigger datachk/ext_datachk23 == complete
      task jecmwf_mos_stations_ens_fcst
         edit NTASK       '51'
         edit PTILE       '51'
         trigger datachk/ens_datachk == complete
      task jecmwf_mos_stations_ens_stats
         trigger jecmwf_mos_stations_ens_fcst == complete
      task jecmwf_mos_stations_ens_prdgen
         trigger jecmwf_mos_stations_ens_stats == complete
    endfamily
  endfamily
endsuite
