-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ufs-community:develop' into c5OSup
- Loading branch information
Showing
10 changed files
with
263 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
dzdt dzdt set_to_fill 0 D | ||
delta_p delp skip 0 D | ||
sphum sphum intrp 1E-7 T | ||
liq_wat liq_wat intrp 0 T | ||
o3mr o3mr intrp 1E-7 T | ||
rainwat rainwat intrp 0 T | ||
ice_wat ice_wat intrp 0 T | ||
snowwat snowwat intrp 0 T | ||
graupel graupel intrp 0 T | ||
ice_nc ice_nc intrp -1.0 T | ||
rain_nc rain_nc intrp -1.0 T | ||
water_nc water_nc intrp -1.0 T | ||
liq_aero liq_aero intrp 0 T | ||
ice_aero ice_aero intrp 0 T | ||
sgs_tke sgs_tke intrp 0 T | ||
vtype vtype skip 0 S | ||
sotype stype skip 0 S | ||
vfrac vfrac skip 0 S | ||
fricv uustar skip 0 S | ||
sfcr zorl set_to_fill 0.01 S | ||
soilw smc stop 0 S | ||
soilt stc stop 0 S | ||
cnwat cnwat set_to_fill 0.0 S | ||
icetk icetk set_to_fill 265.0 S | ||
weasd weasd set_to_fill 0.0 S | ||
snod snod set_to_fill 0.0 S | ||
tprcp tprcp set_to_fill 0.0 S | ||
massden smoke set_to_fill 1E-12 T |
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,103 @@ | ||
#!/bin/bash | ||
|
||
#----------------------------------------------------------------------------- | ||
# Invoke chgres to create 13-km CONUS coldstart files using RAP-SMOKE GRIB2 data | ||
# as input. i.e., if one desires MASSDEN/SMOKE in the ICs/LBCS | ||
# The coldstart files are then compared to baseline files | ||
# using the 'nccmp' utility. This script is run by the machine specific | ||
# driver script. | ||
#----------------------------------------------------------------------------- | ||
|
||
set -x | ||
|
||
export DATA=$OUTDIR/13km_conus_rap-smoke_grib2 | ||
rm -fr $DATA | ||
|
||
export CRES=778 | ||
export KMRES=13km | ||
export FIXfv3=${HOMEreg}/fix/RRFS_CONUS_${KMRES} | ||
|
||
export COMIN=${HOMEreg}/input_data/rap.grib2 | ||
|
||
export GRIB2_FILE_INPUT=1921221000900 | ||
export VCOORD_FILE=${HOMEufs}/fix/am/global_hyblev.l64.txt | ||
export VARMAP_FILE=${HOMEufs}/parm/varmap_tables/GSDphys_smoke_var_map.txt | ||
export INPUT_TYPE='grib2' | ||
export CONVERT_NST=".false." | ||
export OROG_FILES_TARGET_GRID="C778_oro_data.tile7.nc" | ||
export REGIONAL=1 | ||
export HALO_BLEND=0 | ||
export HALO_BNDY=4 | ||
export CDATE=2019080100 | ||
export EXTERNAL_MODEL="RAP" | ||
export NSOILL_OUT=9 | ||
export TRACERS_TARGET='"NULL"' | ||
export TRACERS_INPUT='"NULL"' | ||
export SOTYP_FROM_CLIMO=.false. | ||
export VGTYP_FROM_CLIMO=.false. | ||
export VGFRC_FROM_CLIMO=.true. | ||
export MINMAX_VGFRC_FROM_CLIMO=.true. | ||
export TG3_FROM_SOIL=.true. | ||
export LAI_FROM_CLIMO=.true. | ||
export GEOGRID_FILE_INPUT=${HOMEufs}/fix/am/geo_em.d01.nc_RAPX | ||
|
||
export OMP_NUM_THREADS_CH=${OMP_NUM_THREADS:-1} | ||
|
||
NCCMP=${NCCMP:-$(which nccmp)} | ||
|
||
#----------------------------------------------------------------------------- | ||
# Invoke chgres program. | ||
#----------------------------------------------------------------------------- | ||
|
||
echo "Starting at: " `date` | ||
|
||
${HOMEufs}/ush/chgres_cube.sh | ||
|
||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
set +x | ||
echo "<<< 13-km CONUS RAP-SMOKE W/ GSD PHYSICS AND SFC FROM FILE GRIB2 TEST FAILED. <<<" | ||
exit $iret | ||
fi | ||
|
||
echo "Ending at: " `date` | ||
|
||
#----------------------------------------------------------------------------- | ||
# Compare output from chgres to baseline set of data. | ||
# | ||
# orion's nccmp utility does not work with the netcdf | ||
# required to run ufs_utils. So swap it. | ||
#----------------------------------------------------------------------------- | ||
|
||
machine=${machine:-NULL} | ||
if [ $machine == 'orion' ]; then | ||
module unload netcdfp/4.7.4.release | ||
module load netcdf/4.7.2 | ||
fi | ||
|
||
cd $DATA | ||
|
||
test_failed=0 | ||
for files in *.nc | ||
do | ||
if [ -f $files ]; then | ||
echo CHECK $files | ||
$NCCMP -dmfqS $files $HOMEreg/baseline_data/13km_conus_rap-smoke_grib2/$files | ||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
test_failed=1 | ||
fi | ||
fi | ||
done | ||
|
||
set +x | ||
if [ $test_failed -ne 0 ]; then | ||
echo "<<< 13-km CONUS RAP-SMOKE W/ GSD PHYSICS AND SFC FROM FILE GRIB2 TEST FAILED. >>>" | ||
if [ "$UPDATE_BASELINE" = "TRUE" ]; then | ||
$HOMEufs/reg_tests/update_baseline.sh $HOMEreg "13km_conus_rap-smoke_grib2" $commit_num | ||
fi | ||
else | ||
echo "<<< 13-km CONUS RAP-SMOKE W/ GSD PHYSICS AND SFC FROM FILE GRIB2 TEST PASSED. >>>" | ||
fi | ||
|
||
exit 0 |
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
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.