diff --git a/sorc/test/CMakeLists.txt b/sorc/test/CMakeLists.txt index 305002b0..bbb18b31 100644 --- a/sorc/test/CMakeLists.txt +++ b/sorc/test/CMakeLists.txt @@ -43,16 +43,6 @@ set_tests_properties(test_tile2vector ENVIRONMENT "FIXlandda=$ENV{FIXlandda}; TOL=$ENV{TOL}") -# test for ufs-land-driver -add_test(NAME test_land_driver - COMMAND ${PROJECT_SOURCE_DIR}/test/test_ufs_land_driver.sh ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} - WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test) -set_tests_properties(test_land_driver - PROPERTIES - DEPENDS "test_tile2vector" - ENVIRONMENT "FIXlandda=$ENV{FIXlandda}; - TOL=$ENV{TOL}") - # test for ufs-datm-lnd model add_test(NAME test_ufs_datm_land COMMAND ${PROJECT_SOURCE_DIR}/test/run_ufs_datm_lnd.sh ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} diff --git a/sorc/test/test_ufs_land_driver.sh b/sorc/test/test_ufs_land_driver.sh deleted file mode 100755 index f0612574..00000000 --- a/sorc/test/test_ufs_land_driver.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash -set -ex -################################################ -# pass arguments -project_binary_dir=$1 -project_source_dir=$2 - -# Export runtime env. variables -source ${project_source_dir}/test/runtime_vars.sh ${project_binary_dir} ${project_source_dir} - -# set baseline dir -export TEST_BASEDIR=${TEST_BASEDIR:-"${EPICHOME}/inputs/test_base/restarts/vector"} - -# compute the restart frequency, run_days and run_hours -FREQ=$(( 3600 * $FCSTHR )) -RDD=$(( $FCSTHR / 24 )) -RHH=$(( $FCSTHR % 24 )) - -# set executables -TEST_EXEC="ufsLand.exe" -NPROC=1 - -# move to work directory -cd $WORKDIR - -# clean output folder -[[ -e ufs-land.namelist ]] && rm ufs-land.namelist -for i in ./ufs_land_restart*.nc; -do - [[ -e $i ]] && rm $i -done -for i in ./ufs_land_output*.nc; -do - [[ -e $i ]] && rm $i -done - -# update model namelist -cp $project_source_dir/../parm/templates/template.ufs-noahMP.namelist.${atmos_forc} ufs-land.namelist -sed -i "s|FIXlandda|${FIXlandda}|g" ufs-land.namelist -sed -i -e "s/XXYYYY/${YY}/g" ufs-land.namelist -sed -i -e "s/XXMM/${MM}/g" ufs-land.namelist -sed -i -e "s/XXDD/${DD}/g" ufs-land.namelist -sed -i -e "s/XXHH/${HH}/g" ufs-land.namelist -sed -i -e "s/XXFREQ/${FREQ}/g" ufs-land.namelist -sed -i -e "s/XXRDD/${RDD}/g" ufs-land.namelist -sed -i -e "s/XXRHH/${RHH}/g" ufs-land.namelist - -# link to resart file -ln -fs ${WORKDIR}/ana/restarts/vector/ufs_land_restart.${YY}-${MM}-${DD}_${HH}-00-00.nc . - -# submit model -echo "============================= calling model" -${MPIRUN} -n $NPROC ${EXECDIR}/${TEST_EXEC} - -# check if new restart exits -if [[ -e "./ufs_land_restart.${nYY}-${nMM}-${nDD}_${nHH}-00-00.nc" ]]; then - echo "run fcst model successed!" -else - echo "run fcst failed" - exit 10 -fi - -# check model rst with baseline -echo "============================= baseline check with tol= ${TOL}" -${project_source_dir}/test/compare.py ./ufs_land_restart.${nYY}-${nMM}-${nDD}_${nHH}-00-00.nc ${TEST_BASEDIR}/ufs_land_restart_back.${nYY}-${nMM}-${nDD}_${nHH}-00-00.nc ${TOL} -if [[ $? != 0 ]]; then - echo "baseline check fail!" - exit 20 -fi