Skip to content

Commit

Permalink
[develop] Update weather model hash and remove "_vrfy" from bash comm…
Browse files Browse the repository at this point in the history
…ands (ufs-community#1074)

The weather model hash has been updated to 4f32a4b (April 15).

Additionally, _vrfy has been removed from the cd, cp, ln, mkdir, mv, and rm bash commands in jobs, scripts, ush, and ush/bash_utils. The modified commands don't function as intended (issue ufs-community#861) and aren't accepted by NCO (issue ufs-community#1021).
  • Loading branch information
MichaelLueken authored Apr 30, 2024
1 parent 08537b0 commit eea4c29
Show file tree
Hide file tree
Showing 32 changed files with 134 additions and 430 deletions.
2 changes: 1 addition & 1 deletion .cicd/scripts/srw_metric.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fi
# Test directories
we2e_experiment_base_dir="${we2e_experiment_base_dir:=${workspace}/../expt_dirs/metric_test}"
we2e_test_dir="${we2e_test_dir:=${workspace}/tests/WE2E}"
we2e_test_name="${test_type:=grid_SUBCONUS_Ind_3km_ics_FV3GFS_lbcs_FV3GFS_suite_WoFS_v0}"
we2e_test_name="grid_SUBCONUS_Ind_3km_ics_FV3GFS_lbcs_FV3GFS_suite_WoFS_v0"

pwd

Expand Down
2 changes: 1 addition & 1 deletion Externals.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ protocol = git
repo_url = https://github.com/ufs-community/ufs-weather-model
# Specify either a branch name or a hash but not both.
#branch = develop
hash = 1411b90
hash = 4f32a4b
local_path = sorc/ufs-weather-model
required = True

Expand Down
2 changes: 1 addition & 1 deletion jobs/JREGIONAL_CHECK_POST_OUTPUT
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed."
#
ensmem_name="mem${ENSMEM_INDX}"
cycle_dir="$EXPTDIR/$CDATE"
mkdir_vrfy -p "${cycle_dir}"
mkdir -p "${cycle_dir}"
touch "${cycle_dir}/post_files_exist_${ensmem_name}.txt"
#
#-----------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions jobs/JREGIONAL_GET_EXTRN_MDL_FILES
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ if [ $RUN_ENVIR = "nco" ]; then
export EXTRN_MDL_STAGING_DIR="${EXTRN_MDL_STAGING_DIR:-${DATA}}"
else
export EXTRN_MDL_STAGING_DIR="${COMIN}/${EXTRN_MDL_NAME}/for_${ICS_OR_LBCS}"
mkdir_vrfy -p "${EXTRN_MDL_STAGING_DIR}"
cd_vrfy "${EXTRN_MDL_STAGING_DIR}"
mkdir -p "${EXTRN_MDL_STAGING_DIR}"
cd "${EXTRN_MDL_STAGING_DIR}"
fi
#
#-----------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions jobs/JREGIONAL_MAKE_GRID
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ This is the J-job script for the task that generates grid files.
#-----------------------------------------------------------------------
#
check_for_preexist_dir_file "${GRID_DIR}" "${PREEXISTING_DIR_METHOD}"
mkdir_vrfy -p "${GRID_DIR}"
mkdir -p "${GRID_DIR}"
#
#-----------------------------------------------------------------------
#
Expand All @@ -162,7 +162,7 @@ mkdir_vrfy -p "${GRID_DIR}"
#-----------------------------------------------------------------------
#
DATA="${DATA:-${GRID_DIR}/tmp}"
mkdir_vrfy -p "$DATA"
mkdir -p "$DATA"
#
#-----------------------------------------------------------------------
#
Expand Down
6 changes: 3 additions & 3 deletions jobs/JREGIONAL_MAKE_ICS
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if [ $RUN_ENVIR = "nco" ]; then
else
export INPUT_DATA="${COMIN}${SLASH_ENSMEM_SUBDIR}/INPUT"
fi
mkdir_vrfy -p "${INPUT_DATA}"
mkdir -p "${INPUT_DATA}"
#
#
#-----------------------------------------------------------------------
Expand All @@ -72,8 +72,8 @@ mkdir_vrfy -p "${INPUT_DATA}"
if [ $RUN_ENVIR = "community" ]; then
DATA="${DATA:-${COMIN}${SLASH_ENSMEM_SUBDIR}/tmp_MAKE_ICS}"
check_for_preexist_dir_file "$DATA" "delete"
mkdir_vrfy -p $DATA
cd_vrfy $DATA
mkdir -p $DATA
cd $DATA
fi
#
#-----------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions jobs/JREGIONAL_MAKE_LBCS
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if [ $RUN_ENVIR = "nco" ]; then
else
export INPUT_DATA="${COMIN}${SLASH_ENSMEM_SUBDIR}/INPUT"
fi
mkdir_vrfy -p "${INPUT_DATA}"
mkdir -p "${INPUT_DATA}"
#
#-----------------------------------------------------------------------
#
Expand All @@ -71,8 +71,8 @@ mkdir_vrfy -p "${INPUT_DATA}"
if [ "${RUN_ENVIR}" = "community" ]; then
DATA="${DATA:-${COMIN}${SLASH_ENSMEM_SUBDIR}/tmp_MAKE_LBCS}"
check_for_preexist_dir_file "$DATA" "delete"
mkdir_vrfy -p $DATA
cd_vrfy $DATA
mkdir -p $DATA
cd $DATA
fi
#
#-----------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions jobs/JREGIONAL_MAKE_SFC_CLIMO
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ climatology.
#-----------------------------------------------------------------------
#
check_for_preexist_dir_file "${SFC_CLIMO_DIR}" "${PREEXISTING_DIR_METHOD}"
mkdir_vrfy -p "${SFC_CLIMO_DIR}"
mkdir -p "${SFC_CLIMO_DIR}"
#
#-----------------------------------------------------------------------
#
Expand All @@ -66,7 +66,7 @@ mkdir_vrfy -p "${SFC_CLIMO_DIR}"
DATA="${DATA:-${SFC_CLIMO_DIR}/tmp}"
if [ $RUN_ENVIR != "nco" ]; then
check_for_preexist_dir_file "$DATA" "delete"
mkdir_vrfy $DATA
mkdir $DATA
fi
#
#-----------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions jobs/JREGIONAL_RUN_FCST
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ fi
#
#-----------------------------------------------------------------------
#
mkdir_vrfy -p ${DATA}/INPUT
mkdir_vrfy -p ${DATA}/RESTART
mkdir -p ${DATA}/INPUT
mkdir -p ${DATA}/RESTART
#
#-----------------------------------------------------------------------
#
Expand Down
6 changes: 3 additions & 3 deletions jobs/JREGIONAL_RUN_POST
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fi
if [ "${RUN_ENVIR}" = "community" ]; then
DATA="${DATA:-${COMIN}${SLASH_ENSMEM_SUBDIR}}"
export COMOUT="${DATA}/postprd"
mkdir_vrfy -p "${COMOUT}"
mkdir -p "${COMOUT}"
fi

if [ "${SUB_HOURLY_POST}" = "TRUE" ]; then
Expand All @@ -94,9 +94,9 @@ else
export DATA_FHR="${DATA:-$COMOUT}/$fhr"
fi
check_for_preexist_dir_file "${DATA_FHR}" "delete"
mkdir_vrfy -p "${DATA_FHR}"
mkdir -p "${DATA_FHR}"

cd_vrfy "${DATA_FHR}"
cd "${DATA_FHR}"
#
#-----------------------------------------------------------------------
#
Expand Down
6 changes: 3 additions & 3 deletions jobs/JREGIONAL_RUN_PRDGEN
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ DATA="${DATA:-${COMIN}${SLASH_ENSMEM_SUBDIR}}"
if [ "${RUN_ENVIR}" = "community" ]; then
export COMOUT="${DATA}/postprd"
fi
mkdir_vrfy -p "${COMOUT}"
mkdir -p "${COMOUT}"

# subhourly post
if [ "${SUB_HOURLY_POST}" = "TRUE" ]; then
Expand All @@ -93,9 +93,9 @@ else
export DATA_FHR="${DATA:-$COMOUT}/$fhr"
fi
check_for_preexist_dir_file "${DATA_FHR}" "delete"
mkdir_vrfy -p "${DATA_FHR}"
mkdir -p "${DATA_FHR}"

cd_vrfy "${DATA_FHR}"
cd "${DATA_FHR}"
#
#-----------------------------------------------------------------------
#
Expand Down
16 changes: 8 additions & 8 deletions scripts/exregional_make_grid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ fi
#
# Change location to the temporary (work) directory.
#
cd_vrfy "$DATA"
cd "$DATA"

print_info_msg "$VERBOSE" "
Starting grid file generation..."
Expand Down Expand Up @@ -313,7 +313,7 @@ fi
# to the original directory.
#
grid_fp="$DATA/${grid_fn}"
cd_vrfy -
cd -

print_info_msg "$VERBOSE" "
Grid file generation completed successfully."
Expand Down Expand Up @@ -392,7 +392,7 @@ set_file_param "${GLOBAL_VAR_DEFNS_FP}" "CRES" "'$CRES'"
grid_fp_orig="${grid_fp}"
grid_fn="${CRES}${DOT_OR_USCORE}grid.tile${TILE_RGNL}.halo${NHW}.nc"
grid_fp="${GRID_DIR}/${grid_fn}"
mv_vrfy "${grid_fp_orig}" "${grid_fp}"
mv "${grid_fp_orig}" "${grid_fp}"
#
#-----------------------------------------------------------------------
#
Expand Down Expand Up @@ -449,7 +449,7 @@ unshaved_fp="${grid_fp}"
# Once it is complete, we will move the resultant file from DATA to
# GRID_DIR.
#
cd_vrfy "$DATA"
cd "$DATA"
#
# Create an input namelist file for the shave executable to generate a
# grid file with a 3-cell-wide halo from the one with a wide halo. Then
Expand Down Expand Up @@ -477,7 +477,7 @@ The namelist file (nml_fn) used in this call is in directory DATA:
nml_fn = \"${nml_fn}\"
DATA = \"${DATA}\""
POST_STEP
mv_vrfy ${shaved_fp} ${GRID_DIR}
mv ${shaved_fp} ${GRID_DIR}
#
# Create an input namelist file for the shave executable to generate a
# grid file with a 4-cell-wide halo from the one with a wide halo. Then
Expand Down Expand Up @@ -505,7 +505,7 @@ The namelist file (nml_fn) used in this call is in directory DATA:
nml_fn = \"${nml_fn}\"
DATA = \"${DATA}\""
POST_STEP
mv_vrfy ${shaved_fp} ${GRID_DIR}
mv ${shaved_fp} ${GRID_DIR}
#
# Create an input namelist file for the shave executable to generate a
# grid file without halo from the one with a wide halo. Then
Expand All @@ -532,11 +532,11 @@ The namelist file (nml_fn) used in this call is in directory DATA:
nml_fn = \"${nml_fn}\"
DATA = \"${DATA}\""
POST_STEP
mv_vrfy ${shaved_fp} ${GRID_DIR}
mv ${shaved_fp} ${GRID_DIR}
#
# Change location to the original directory.
#
cd_vrfy -
cd -
#
#-----------------------------------------------------------------------
#
Expand Down
14 changes: 7 additions & 7 deletions scripts/exregional_make_ics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,10 @@ if [ "${CPL_AQM}" = "TRUE" ]; then
cp -p gfs_ctrl.nc "${COMOUT}/${NET}.${cycle}${dot_ensmem}.gfs_ctrl.nc"
cp -p gfs.bndy.nc "${DATA_SHARE}/${NET}.${cycle}${dot_ensmem}.gfs_bndy.tile${TILE_RGNL}.f000.nc"
else
mv_vrfy out.atm.tile${TILE_RGNL}.nc ${INPUT_DATA}/${NET}.${cycle}${dot_ensmem}.gfs_data.tile${TILE_RGNL}.halo${NH0}.nc
mv_vrfy out.sfc.tile${TILE_RGNL}.nc ${INPUT_DATA}/${NET}.${cycle}${dot_ensmem}.sfc_data.tile${TILE_RGNL}.halo${NH0}.nc
mv_vrfy gfs_ctrl.nc ${INPUT_DATA}/${NET}.${cycle}${dot_ensmem}.gfs_ctrl.nc
mv_vrfy gfs.bndy.nc ${INPUT_DATA}/${NET}.${cycle}${dot_ensmem}.gfs_bndy.tile${TILE_RGNL}.f000.nc
mv out.atm.tile${TILE_RGNL}.nc ${INPUT_DATA}/${NET}.${cycle}${dot_ensmem}.gfs_data.tile${TILE_RGNL}.halo${NH0}.nc
mv out.sfc.tile${TILE_RGNL}.nc ${INPUT_DATA}/${NET}.${cycle}${dot_ensmem}.sfc_data.tile${TILE_RGNL}.halo${NH0}.nc
mv gfs_ctrl.nc ${INPUT_DATA}/${NET}.${cycle}${dot_ensmem}.gfs_ctrl.nc
mv gfs.bndy.nc ${INPUT_DATA}/${NET}.${cycle}${dot_ensmem}.gfs_bndy.tile${TILE_RGNL}.f000.nc
fi
#
#-----------------------------------------------------------------------
Expand All @@ -684,7 +684,7 @@ Please ensure that you've built this executable."
print_err_msg_exit "${message_txt}"
fi
fi
cp_vrfy ${fvcom_exec_fp} ${INPUT_DATA}/.
cp ${fvcom_exec_fp} ${INPUT_DATA}/.
fvcom_data_fp="${FVCOM_DIR}/${FVCOM_FILE}"
if [ ! -f "${fvcom_data_fp}" ]; then
message_txt="The file or path (fvcom_data_fp) does not exist:
Expand All @@ -699,8 +699,8 @@ Please check the following user defined variables:
fi
fi

cp_vrfy ${fvcom_data_fp} ${INPUT_DATA}/fvcom.nc
cd_vrfy ${INPUT_DATA}
cp ${fvcom_data_fp} ${INPUT_DATA}/fvcom.nc
cd ${INPUT_DATA}
PREP_STEP
eval ${RUN_CMD_UTILS} ${fvcom_exec_fn} \
${NET}.${cycle}${dot_ensmem}.sfc_data.tile${TILE_RGNL}.halo${NH0}.nc fvcom.nc ${FVCOM_WCSTART} ${fvcom_time} \
Expand Down
2 changes: 1 addition & 1 deletion scripts/exregional_make_lbcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ located in the following directory:
if [ "${CPL_AQM}" = "TRUE" ]; then
cp -p gfs.bndy.nc ${DATA_SHARE}/${NET}.${cycle}${dot_ensmem}.gfs_bndy.tile7.f${fcst_hhh_FV3LAM}.nc
else
mv_vrfy gfs.bndy.nc ${INPUT_DATA}/${NET}.${cycle}${dot_ensmem}.gfs_bndy.tile7.f${fcst_hhh_FV3LAM}.nc
mv gfs.bndy.nc ${INPUT_DATA}/${NET}.${cycle}${dot_ensmem}.gfs_bndy.tile7.f${fcst_hhh_FV3LAM}.nc
fi

fi
Expand Down
Loading

0 comments on commit eea4c29

Please sign in to comment.