forked from ufs-community/UFS_UTILS
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into cleanup/oro_script
Fixes ufs-community#932.
- Loading branch information
Showing
22 changed files
with
974 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
help([[ | ||
Load environment to compile UFS_UTILS on Gaea using Intel | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/sw/rdtn/modulefiles") | ||
load("hsi") | ||
|
||
prepend_path("MODULEPATH", "/ncrc/proj/epic/spack-stack/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core") | ||
|
||
stack_intel_ver=os.getenv("stack_intel_ver") or "2023.1.0" | ||
load(pathJoin("stack-intel", stack_intel_ver)) | ||
|
||
stack_cray_mpich_ver=os.getenv("stack_cray_mpich_ver") or "8.1.25" | ||
load(pathJoin("stack-cray-mpich", stack_cray_mpich_ver)) | ||
|
||
cmake_ver=os.getenv("cmake_ver") or "3.23.1" | ||
load(pathJoin("cmake", cmake_ver)) | ||
|
||
bacio_ver=os.getenv("bacio_ver") or "2.4.1" | ||
load(pathJoin("bacio", bacio_ver)) | ||
|
||
g2_ver=os.getenv("g2_ver") or "3.4.5" | ||
load(pathJoin("g2", g2_ver)) | ||
|
||
ip_ver=os.getenv("ip_ver") or "4.3.0" | ||
load(pathJoin("ip", ip_ver)) | ||
|
||
nemsio_ver=os.getenv("nemsio_ver") or "2.5.4" | ||
load(pathJoin("nemsio", nemsio_ver)) | ||
|
||
sp_ver=os.getenv("sp_ver") or "2.5.0" | ||
load(pathJoin("sp", sp_ver)) | ||
|
||
w3emc_ver=os.getenv("w3emc_ver") or "2.10.0" | ||
load(pathJoin("w3emc", w3emc_ver)) | ||
|
||
-- Uncomment when CHGRES_ALL is ON | ||
--sfcio_ver=os.getenv("sfcio_ver") or "1.4.1" | ||
--load(pathJoin("sfcio", sfcio_ver)) | ||
|
||
sigio_ver=os.getenv("sigio_ver") or "2.3.2" | ||
load(pathJoin("sigio", sigio_ver)) | ||
|
||
zlib_ver=os.getenv("zlib_ver") or "1.2.13" | ||
load(pathJoin("zlib", zlib_ver)) | ||
|
||
png_ver=os.getenv("png_ver") or "1.6.37" | ||
load(pathJoin("libpng", png_ver)) | ||
|
||
netcdf_c_ver=os.getenv("netcdf_c_ver") or "4.9.2" | ||
load(pathJoin("netcdf-c", netcdf_c_ver)) | ||
|
||
netcdf_fortran_ver=os.getenv("netcdf_fortran_ver") or "4.6.1" | ||
load(pathJoin("netcdf-fortran", netcdf_fortran_ver)) | ||
|
||
nccmp_ver=os.getenv("nccmp_ver") or "1.9.0.1" | ||
load(pathJoin("nccmp", nccmp_ver)) | ||
|
||
esmf_ver=os.getenv("esmf_ver") or "8.6.0" | ||
load(pathJoin("esmf", esmf_ver)) | ||
|
||
nco_ver=os.getenv("nco_ver") or "5.0.6" | ||
load(pathJoin("nco", nco_ver)) | ||
|
||
whatis("Description: UFS_UTILS build environment") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
#!/bin/bash | ||
|
||
#------------------------------------------------------------------ | ||
# Run global_cycle for a C192 case to test the ingest and | ||
# application of soil moisture and temperature increments | ||
# on the cubed-sphere grid into Noah-MP restarts, which | ||
# yields (almost) identical results as compared with the GSI case | ||
# given the same day of increments on two different grids. | ||
# Compare output to a baseline set of files using the 'nccmp' | ||
# utility. | ||
#------------------------------------------------------------------ | ||
|
||
set -x | ||
|
||
NCCMP=${NCCMP:-$(which nccmp)} | ||
|
||
export MAX_TASKS_CY=6 | ||
|
||
export HOMEgfs=$NWPROD | ||
|
||
export FIXgfs=$HOMEreg/fix | ||
|
||
export CYCLEXEC=$HOMEgfs/exec/global_cycle | ||
|
||
export CDATE=2019073000 | ||
export FHOUR=00 | ||
export DELTSFC=6 | ||
|
||
export CASE=C192 | ||
export OCNRES=99999 | ||
|
||
export COMIN=$HOMEreg/input_data_noahmp | ||
|
||
export JCAP=1534 | ||
export LONB=3072 | ||
export LATB=1536 | ||
|
||
export DONST="NO" | ||
export use_ufo=.true. | ||
|
||
export DO_SFCCYCLE=".FALSE." | ||
export DO_LNDINC=".TRUE." | ||
export DO_SOI_INC_JEDI=".true." | ||
|
||
export VERBOSE=YES | ||
export CYCLVARS=FSNOL=-2.,FSNOS=99999., | ||
|
||
$HOMEgfs/ush/global_cycle_driver.sh | ||
|
||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
set +x | ||
echo "<<< C192 JEDI based LANDINC SOIL NOAHMP CYCLE TEST FAILED. >>>" | ||
exit $iret | ||
fi | ||
|
||
test_failed=0 | ||
|
||
cd $DATA | ||
for files in *tile*.nc | ||
do | ||
if [ -f $files ]; then | ||
echo CHECK $files | ||
$NCCMP -dmfqS $files $HOMEreg/baseline_data/c192.jedi_lndincsoilnoahmp/$files | ||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
test_failed=1 | ||
fi | ||
fi | ||
done | ||
|
||
set +x | ||
if [ $test_failed -ne 0 ]; then | ||
echo | ||
echo "**********************************************" | ||
echo "<<< C192 JEDI based LANDINC SOIL-NOAHMP CYCLE TEST FAILED. >>>" | ||
echo "**********************************************" | ||
if [ "$UPDATE_BASELINE" = "TRUE" ]; then | ||
$HOMEgfs/reg_tests/update_baseline.sh $HOMEreg "c192.jedi_lndincsoilnoahmp" $commit_num | ||
fi | ||
else | ||
echo | ||
echo "*****************************************" | ||
echo "<<< C192 JEDI based LANDINC SOIL-NOAHMP CYCLE TEST PASSED. >>>" | ||
echo "*****************************************" | ||
fi | ||
|
||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.