From 82a7fd6ee26db7ea0dd34166a29ca4b6b78ddfc4 Mon Sep 17 00:00:00 2001 From: "Judy.K.Henderson" Date: Tue, 19 Mar 2024 07:35:48 +0000 Subject: [PATCH] Changes for compiling with Rocky8 OS Updated config.fcst: keep dt_inner to half of physics timestep if running aerosol-aware Thompson microphysics --- parm/config/gfs/config.fcst | 28 +++++++++++++++------------- versions/build.hera.ver | 2 ++ versions/build.spack.ver | 8 ++++---- versions/run.hera.ver | 6 ++---- workflow/c3_mynn_ugwpv1.sh | 18 ++++++++++++++++++ workflow/mynn_ugwpv1.sh | 6 +++--- 6 files changed, 44 insertions(+), 24 deletions(-) create mode 100755 workflow/c3_mynn_ugwpv1.sh diff --git a/parm/config/gfs/config.fcst b/parm/config/gfs/config.fcst index b20d3e5d4e..a4c4ee8072 100644 --- a/parm/config/gfs/config.fcst +++ b/parm/config/gfs/config.fcst @@ -119,7 +119,7 @@ fi # PBL/turbulence schemes export hybedmf=".false." -if [[ "$CCPP_SUITE" == "FV3_GFS_v17_p8_ugwpv1_mynn" || "$CCPP_SUITE" == "FV3_GFS_v17_p8_mynn" || "$CCPP_SUITE" == "FV3_GFS_v17_p8_c3_mynn" ]] ; then +if [[ "$CCPP_SUITE" == "FV3_GFS_v17_p8_ugwpv1_mynn" || "$CCPP_SUITE" == "FV3_GFS_v17_p8_ugwpv1_c3_mynn" || "$CCPP_SUITE" == "FV3_GFS_v17_p8_mynn" || "$CCPP_SUITE" == "FV3_GFS_v17_p8_c3_mynn" ]] ; then export satmedmf=".false." export isatmedmf=0 export shal_cnv=".false." @@ -163,7 +163,7 @@ export iopt_trs="2" # Convection Options: 2-SASAS, 3-GF export progsigma=".true." -if [[ "$CCPP_SUITE" == "FV3_GFS_v17_p8_c3_mynn" ]] ; then +if [[ "$CCPP_SUITE" == "FV3_GFS_v17_p8_c3_mynn" || "$CCPP_SUITE" == "FV3_GFS_v17_p8_ugwpv1_c3_mynn" ]] ; then export imfdeepcnv=5 export imfshalcnv=-1 ## JKH - no shallow GF elif [[ "$CCPP_SUITE" == "FV3_GFS_v17_p8_ugwpv1_c3" ]] ; then @@ -211,25 +211,27 @@ case ${imp_physics} in export ncld=2 export nwat=6 - if [[ "$CCPP_SUITE" == "FV3_GFS_v17_p8_ugwpv1_mynn" || "$CCPP_SUITE" == "FV3_GFS_v17_p8_mynn" || "$CCPP_SUITE" == "FV3_GFS_v17_p8_c3_mynn" || - "$CCPP_SUITE" == "FV3_GFS_v17_p8_thompson" ]] ; then - export ltaerosol=".true." - export FIELD_TABLE="${HOMEgfs}/parm/ufs/fv3/field_table_thompson_aero_tke${tbp}" - else - export ltaerosol=".false." - export FIELD_TABLE="${HOMEgfs}/parm/ufs/fv3/field_table_thompson_noaero_tke${tbp}" - fi - export cal_pre=".false." export random_clds=".false." export effr_in=".true." export lradar=".true." export ttendlim="-999" - export dt_inner=$((DELTIM/2)) export sedi_semi=.true. - if [[ "${sedi_semi}" == .true. ]]; then export dt_inner=${DELTIM} ; fi export decfl=10 + if [[ "${CCPP_SUITE}" == "FV3_GFS_v17_p8_ugwpv1_mynn" || "${CCPP_SUITE}" == "FV3_GFS_v17_p8_ugwpv1_c3_mynn" || "${CCPP_SUITE}" == "FV3_GFS_v17_p8_mynn" || "${CCPP_SUITE}" == "FV3_GFS_v17_p8_c3_mynn" || + "${CCPP_SUITE}" == "FV3_GFS_v17_p8_thompson" ]] ; then + #JKH keep dt_inner $DELTIM/2 (75) if running aerosol-aware Thompson + export dt_inner=$((DELTIM/2)) + export ltaerosol=".true." + export FIELD_TABLE="${HOMEgfs}/parm/ufs/fv3/field_table_thompson_aero_tke${tbp}" + else + export dt_inner=$((DELTIM/2)) + if [[ "${sedi_semi}" == .true. ]]; then export dt_inner=${DELTIM} ; fi + export ltaerosol=".false." + export FIELD_TABLE="${HOMEgfs}/parm/ufs/fv3/field_table_thompson_noaero_tke${tbp}" + fi + export hord_mt_nh_nonmono=5 export hord_xx_nh_nonmono=5 export vtdm4_nh_nonmono=0.02 diff --git a/versions/build.hera.ver b/versions/build.hera.ver index ff85b1a801..263e967a97 100644 --- a/versions/build.hera.ver +++ b/versions/build.hera.ver @@ -1,3 +1,5 @@ export stack_intel_ver=2021.5.0 export stack_impi_ver=2021.5.1 +export spack_env=gsi-addon-dev source "${HOMEgfs:-}/versions/build.spack.ver" +export spack_mod_path="/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-${spack_stack_ver}/envs/${spack_env}/install/modulefiles/Core" diff --git a/versions/build.spack.ver b/versions/build.spack.ver index fb5b244bf5..ec6e508f97 100644 --- a/versions/build.spack.ver +++ b/versions/build.spack.ver @@ -1,7 +1,7 @@ export spack_stack_ver=1.5.1 export spack_env=gsi-addon -export cmake_ver=3.23.1 +export cmake_ver=3.28.1 export jasper_ver=2.0.32 export libpng_ver=1.6.37 @@ -11,7 +11,7 @@ export fms_ver=2023.02.01 export hdf5_ver=1.14.0 export netcdf_c_ver=4.9.2 -export netcdf_fortran_ver=4.6.0 +export netcdf_fortran_ver=4.6.1 export bacio_ver=2.4.1 export nemsio_ver=2.5.4 @@ -19,10 +19,10 @@ export sigio_ver=2.3.2 export w3emc_ver=2.10.0 export bufr_ver=11.7.0 export g2_ver=3.4.5 -export sp_ver=2.3.3 +export sp_ver=2.5.0 export ip_ver=4.3.0 export gsi_ncdiag_ver=1.1.2 export g2tmpl_ver=1.10.2 -export crtm_ver=2.4.0 +export crtm_ver=2.4.0.1 export wgrib2_ver=2.0.8 export grib_util_ver=1.3.0 diff --git a/versions/run.hera.ver b/versions/run.hera.ver index 43443ba715..4529d34821 100644 --- a/versions/run.hera.ver +++ b/versions/run.hera.ver @@ -1,13 +1,11 @@ export stack_intel_ver=2021.5.0 export stack_impi_ver=2021.5.1 +export spack_env=gsi-addon-dev export hpss_ver=hpss export ncl_ver=6.6.2 export R_ver=3.5.0 export gempak_ver=7.4.2 -#For metplus jobs, not currently working with spack-stack -#export met_ver=9.1.3 -#export metplus_ver=3.1.1 - source "${HOMEgfs:-}/versions/run.spack.ver" +export spack_mod_path="/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-${spack_stack_ver}/envs/${spack_env}/install/modulefiles/Core" diff --git a/workflow/c3_mynn_ugwpv1.sh b/workflow/c3_mynn_ugwpv1.sh new file mode 100755 index 0000000000..5640d32164 --- /dev/null +++ b/workflow/c3_mynn_ugwpv1.sh @@ -0,0 +1,18 @@ +#!/bin/sh +USER=Judy.K.Henderson +GITDIR=/scratch1/BMC/gsd-fv3-dev/jhender/test/test_gsl_ufs_dev_29jan24_rocky8/ ## where your git checkout is located +COMROT=${GITDIR}/FV3GFSrun ## default COMROT directory +EXPDIR=${GITDIR}/FV3GFSwfm ## default EXPDIR directory +#ICSDIR=/scratch1/BMC/gsd-fv3/rtruns/FV3ICS_L127 + +PSLOT=c3_mynn +IDATE=2024031100 +EDATE=2024031100 +RESDET=768 ## 96 192 384 768 + +### gfs_cyc 1 00Z only; gfs_cyc 2 00Z and 12Z + +./setup_expt.py gfs forecast-only --pslot "${PSLOT}" --gfs_cyc 1 \ + --idate "${IDATE}" --edate "${EDATE}" --resdetatmos "${RESDET}" \ + --comroot "${COMROT}" --expdir "${EXPDIR}" + diff --git a/workflow/mynn_ugwpv1.sh b/workflow/mynn_ugwpv1.sh index af054257c6..cbbf89a9af 100755 --- a/workflow/mynn_ugwpv1.sh +++ b/workflow/mynn_ugwpv1.sh @@ -1,13 +1,13 @@ #!/bin/sh USER=Judy.K.Henderson -GITDIR=/scratch1/BMC/gsd-fv3-dev/jhender/test/gsl_ufs_dev/ ## where your git checkout is located +GITDIR=/scratch1/BMC/gsd-fv3-dev/jhender/test/test_gsl_ufs_dev_29jan24_rocky8/ ## where your git checkout is located COMROT=${GITDIR}/FV3GFSrun ## default COMROT directory EXPDIR=${GITDIR}/FV3GFSwfm ## default EXPDIR directory #ICSDIR=/scratch1/BMC/gsd-fv3/rtruns/FV3ICS_L127 PSLOT=mynn -IDATE=2023112800 -EDATE=2023112800 +IDATE=2024031100 +EDATE=2024031100 RESDET=768 ## 96 192 384 768 ### gfs_cyc 1 00Z only; gfs_cyc 2 00Z and 12Z