Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tests for chgres_cube.fd/program_setup.f90 read_setup_namelist() subroutine #296

Closed
edwardhartnett opened this issue Feb 16, 2021 · 15 comments · Fixed by #457
Closed
Assignees
Labels

Comments

@edwardhartnett
Copy link
Collaborator

Seems like I need the read_namelist function to work for #256

@edwardhartnett edwardhartnett self-assigned this Feb 16, 2021
@edwardhartnett
Copy link
Collaborator Author

@GeorgeGayno-NOAA can I please have a working namelist file for the chgres_cube?

@GeorgeGayno-NOAA
Copy link
Collaborator

You can use this sample on Hera: /scratch2/NCEPDEV/stmp1/George.Gayno/namelist.for.ed

@edwardhartnett
Copy link
Collaborator Author

&config
  mosaic_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/C96_mosaic.nc"
  fix_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/fix_sfc"
  orog_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96"
  orog_files_target_grid="C96_oro_data.tile1.nc","C96_oro_data.tile2.nc","C96_oro_data.tile3.nc","C96_oro_data.tile4.nc","C96_oro_data.tile5.nc","C96_oro_data.tile6.nc"
  vcoord_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/ufs_utils.git/UFS_UTILS/reg_tests/chgres_cube/../../fix/fix_am/global_hyblev.l64.txt"
  data_dir_input_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/input_data/fv3.nemsio"
  atm_files_input_grid="gfs.t12z.atmf000.nemsio"
  sfc_files_input_grid="gfs.t12z.sfcf000.nemsio"
  cycle_mon=07
  cycle_day=04
  cycle_hour=12
  convert_atm=.true.
  convert_sfc=.true.
  convert_nst=.true.
  input_type="gaussian_nemsio"
  tracers="sphum","liq_wat","o3mr","ice_wat","rainwat","snowwat","graupel"
  tracers_input="spfh","clwmr","o3mr","icmr","rwmr","snmr","grle"
  regional=0
  halo_bndy=0
  halo_blend=0
 /

@edwardhartnett
Copy link
Collaborator Author

@GeorgeGayno-NOAA I need a namelist that has grib input as well, so I can test the read_varmap() subroutine. Can you post the contents of such a namelist here?

Also, if there are other valid sorts of namelists, post the contents of a sample from each of the valid input choices, and I will add tests for them.

@GeorgeGayno-NOAA
Copy link
Collaborator

Each namelist has slightly different entries based on the input data source. I will cut and paste samples of each to this issue.

@GeorgeGayno-NOAA
Copy link
Collaborator

Sample namelist when using FV3 tiled history data as input:

 &config
  mosaic_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C192/C192_mosaic.nc"
  fix_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C192/fix_sfc"
  orog_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C192"
  orog_files_target_grid="C192_oro_data.tile1.nc","C192_oro_data.tile2.nc","C192_oro_data.tile3.nc","C192_oro_data.tile4.nc","C192_oro_data.tile5.nc","C192_oro_data.tile6.nc"
  vcoord_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/ufs_utils.git/UFS_UTILS/reg_tests/chgres_cube/../../fix/fix_am/global_hyblev.l64.txt"
  mosaic_file_input_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/C96_mosaic.nc"
  orog_dir_input_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96"
  orog_files_input_grid="C96_oro_data.tile1.nc","C96_oro_data.tile2.nc","C96_oro_data.tile3.nc","C96_oro_data.tile4.nc","C96_oro_data.tile5.nc","C96_oro_data.tile6.nc"
  data_dir_input_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/input_data/fv3.history"
  atm_files_input_grid="dynf000.tile1.nc","dynf000.tile2.nc","dynf000.tile3.nc","dynf000.tile4.nc","dynf000.tile5.nc","dynf000.tile6.nc"
  sfc_files_input_grid="phyf000.tile1.nc","phyf000.tile2.nc","phyf000.tile3.nc","phyf000.tile4.nc","phyf000.tile5.nc","phyf000.tile6.nc"
  cycle_mon=10
  cycle_day=03
  cycle_hour=00
  convert_atm=.true.
  convert_sfc=.true.
  convert_nst=.true.
  input_type="history"
  tracers="sphum","liq_wat","o3mr"
  tracers_input="spfh","clwmr","o3mr"
  regional=0
  halo_bndy=0
  halo_blend=0
 /

@GeorgeGayno-NOAA
Copy link
Collaborator

Sample namelist when using GFS GRIB2 data as input:

 &config
  mosaic_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C192/C192_mosaic.nc"
  fix_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C192/fix_sfc"
  orog_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C192"
  orog_files_target_grid="C192_oro_data.tile1.nc","C192_oro_data.tile2.nc","C192_oro_data.tile3.nc","C192_oro_data.tile4.nc","C192_oro_data.tile5.nc","C192_oro_data.tile6.nc"
  vcoord_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/ufs_utils.git/UFS_UTILS/reg_tests/chgres_cube/../../fix/fix_am/global_hyblev.l65.txt"
  data_dir_input_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/input_data/gfs.grib2"
  grib2_file_input_grid="gfs.t00z.pgrb2.0p50.f000"
  varmap_file="/scratch1/NCEPDEV/da/George.Gayno/ufs_utils.git/UFS_UTILS/reg_tests/chgres_cube/../../parm/varmap_tables/GFSphys_var_map.txt"
  cycle_mon=11
  cycle_day=04
  cycle_hour=00
  convert_atm=.true.
  convert_sfc=.true.
  convert_nst=.false.
  input_type="grib2"
  tracers="sphum","liq_wat","o3mr","ice_wat","rainwat","snowwat","graupel"
  tracers_input="spfh","clwmr","o3mr","icmr","rwmr","snmr","grle"
  regional=0
  halo_bndy=0
  halo_blend=0
 /

@GeorgeGayno-NOAA
Copy link
Collaborator

Sample namelist when using FV3 nemsio data as input:

 &config
  mosaic_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/C96_mosaic.nc"
  fix_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/fix_sfc"
  orog_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96"
  orog_files_target_grid="C96_oro_data.tile1.nc","C96_oro_data.tile2.nc","C96_oro_data.tile3.nc","C96_oro_data.tile4.nc","C96_oro_data.tile5.nc","C96_oro_data.tile6.nc"
  vcoord_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/ufs_utils.git/UFS_UTILS/reg_tests/chgres_cube/../../fix/fix_am/global_hyblev.l64.txt"
  data_dir_input_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/input_data/fv3.nemsio"
  atm_files_input_grid="gfs.t12z.atmf000.nemsio"
  sfc_files_input_grid="gfs.t12z.sfcf000.nemsio"
  cycle_mon=07
  cycle_day=04
  cycle_hour=12
  convert_atm=.true.
  convert_sfc=.true.
  convert_nst=.true.
  input_type="gaussian_nemsio"
  tracers="sphum","liq_wat","o3mr","ice_wat","rainwat","snowwat","graupel"
  tracers_input="spfh","clwmr","o3mr","icmr","rwmr","snmr","grle"
  regional=0
  halo_bndy=0
  halo_blend=0
 /

@GeorgeGayno-NOAA
Copy link
Collaborator

Sample namelist when using FV3 netcdf data as input:

 &config
  mosaic_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/C96_mosaic.nc"
  fix_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/fix_sfc"
  orog_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96"
  orog_files_target_grid="C96_oro_data.tile1.nc","C96_oro_data.tile2.nc","C96_oro_data.tile3.nc","C96_oro_data.tile4.nc","C96_oro_data.tile5.nc","C96_oro_data.tile6.nc"
  vcoord_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/ufs_utils.git/UFS_UTILS/reg_tests/chgres_cube/../../fix/fix_am/global_hyblev.l64.txt"
  data_dir_input_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/input_data/fv3.netcdf"
  atm_files_input_grid="gfs.t00z.atmf000.nc"
  sfc_files_input_grid="gfs.t00z.sfcf000.nc"
  cycle_mon=02
  cycle_day=02
  cycle_hour=00
  convert_atm=.true.
  convert_sfc=.true.
  convert_nst=.true.
  input_type="gaussian_netcdf"
  tracers="sphum","liq_wat","o3mr","ice_wat","rainwat","snowwat","graupel"
  tracers_input="spfh","clwmr","o3mr","icmr","rwmr","snmr","grle"
  regional=0
  halo_bndy=0
  halo_blend=0
 /

@GeorgeGayno-NOAA
Copy link
Collaborator

Sample namelist when using FV3 tiled warm restart files as input:

 &config
  mosaic_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/C96_mosaic.nc"
  fix_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/fix_sfc"
  orog_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96"
  orog_files_target_grid="C96_oro_data.tile1.nc","C96_oro_data.tile2.nc","C96_oro_data.tile3.nc","C96_oro_data.tile4.nc","C96_oro_data.tile5.nc","C96_oro_data.tile6.nc"
  vcoord_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/ufs_utils.git/UFS_UTILS/reg_tests/chgres_cube/../../fix/fix_am/global_hyblev.l64.txt"
  mosaic_file_input_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C384/C384_mosaic.nc"
  orog_dir_input_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C384"
  orog_files_input_grid="C384_oro_data.tile1.nc","C384_oro_data.tile2.nc","C384_oro_data.tile3.nc","C384_oro_data.tile4.nc","C384_oro_data.tile5.nc","C384_oro_data.tile6.nc"
  data_dir_input_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/input_data/fv3.restart"
  atm_core_files_input_grid="20190706.120000.fv_core.res.tile1.nc","20190706.120000.fv_core.res.tile2.nc","20190706.120000.fv_core.res.tile3.nc","20190706.120000.fv_core.res.tile4.nc","20190706.120000.fv_core.res.tile5.nc","20190706.120000.fv_core.res.tile6.nc","20190706.120000.fv_core.res.nc"
  atm_tracer_files_input_grid="20190706.120000.fv_tracer.res.tile1.nc","20190706.120000.fv_tracer.res.tile2.nc","20190706.120000.fv_tracer.res.tile3.nc","20190706.120000.fv_tracer.res.tile4.nc","20190706.120000.fv_tracer.res.tile5.nc","20190706.120000.fv_tracer.res.tile6.nc"
  sfc_files_input_grid="20190706.120000.sfc_data.tile1.nc","20190706.120000.sfc_data.tile2.nc","20190706.120000.sfc_data.tile3.nc","20190706.120000.sfc_data.tile4.nc","20190706.120000.sfc_data.tile5.nc","20190706.120000.sfc_data.tile6.nc"
  cycle_mon=07
  cycle_day=06
  cycle_hour=12
  convert_atm=.true.
  convert_sfc=.true.
  convert_nst=.true.
  input_type="restart"
  tracers="sphum","liq_wat","o3mr","ice_wat","rainwat","snowwat","graupel"
  tracers_input="sphum","liq_wat","o3mr","ice_wat","rainwat","snowwat","graupel"
  regional=0
  halo_bndy=0
  halo_blend=0
 /

@GeorgeGayno-NOAA
Copy link
Collaborator

Sample namelist when using spectral GFS nemsio data as input:

 &config
  mosaic_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/C96_mosaic.nc"
  fix_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/fix_sfc"
  orog_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96"
  orog_files_target_grid="C96_oro_data.tile1.nc","C96_oro_data.tile2.nc","C96_oro_data.tile3.nc","C96_oro_data.tile4.nc","C96_oro_data.tile5.nc","C96_oro_data.tile6.nc"
  vcoord_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/ufs_utils.git/UFS_UTILS/reg_tests/chgres_cube/../../fix/fix_am/global_hyblev.l64.txt"
  data_dir_input_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/input_data/gfs.nemsio"
  atm_files_input_grid="gfnanl.gdas.2017071700"
  sfc_files_input_grid="sfnanl.gdas.2017071700"
  nst_files_input_grid="nsnanl.gdas.2017071700"
  cycle_mon=07
  cycle_day=17
  cycle_hour=00
  convert_atm=.true.
  convert_sfc=.true.
  convert_nst=.true.
  input_type="gfs_gaussian_nemsio"
  tracers="sphum","liq_wat","o3mr"
  tracers_input="spfh","clwmr","o3mr"
  regional=0
  halo_bndy=0
  halo_blend=0
 /

@GeorgeGayno-NOAA
Copy link
Collaborator

Sample namelist when using spectral GFS sigio format:

 &config
  mosaic_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/C96_mosaic.nc"
  fix_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96/fix_sfc"
  orog_dir_target_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/fix/C96"
  orog_files_target_grid="C96_oro_data.tile1.nc","C96_oro_data.tile2.nc","C96_oro_data.tile3.nc","C96_oro_data.tile4.nc","C96_oro_data.tile5.nc","C96_oro_data.tile6.nc"
  vcoord_file_target_grid="/scratch1/NCEPDEV/da/George.Gayno/ufs_utils.git/UFS_UTILS/reg_tests/chgres_cube/../../fix/fix_am/global_hyblev.l64.txt"
  data_dir_input_grid="/scratch1/NCEPDEV/da/George.Gayno/noscrub/reg_tests/chgres_cube/input_data/gfs.sigio"
  atm_files_input_grid="gdas.t00z.sanl"
  sfc_files_input_grid="gdas.t00z.sfcanl"
  cycle_mon=07
  cycle_day=17
  cycle_hour=00
  convert_atm=.true.
  convert_sfc=.true.
  convert_nst=.false.
  input_type="gfs_sigio"
  tracers="sphum","o3mr","liq_wat"
  tracers_input="spfh","o3mr","clwmr"
  regional=0
  halo_bndy=0
  halo_blend=0
 /

@GeorgeGayno-NOAA
Copy link
Collaborator

That should cover all the bases.

@GeorgeGayno-NOAA
Copy link
Collaborator

If you want to run these MPI tests on WCOSS-Dell, here is what I do:

#BSUB -x                 # run not shared
#BSUB -n 6               # total tasks
#BSUB -R span[ptile=6]   # tasks per node
#BSUB -R affinity[core(1):distribute=balance]

mpirun chgres_cube.exe

@edwardhartnett
Copy link
Collaborator Author

I will try and let you know...

@edwardhartnett edwardhartnett changed the title add tests for chgres_cube.fd/program_setup.f90 add tests for chgres_cube.fd/program_setup.f90 read_setup_namelist() subroutine Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants