-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* UFSWM - Adds GFDL Land Model version 4 (LM4) as a component model, functional in Data Atmosphere mode * CMEPS - Small modifications for coupling of LM4 * LM4-NUOPC driver - new model component hosted at github.com/NOAA-GFDL/LM4-NUOPC-driver. NUOPC Cap for LM4 * LM4.0 - submodule of LM4 NUOPC driver, hosted at https://github.com/NOAA-GFDL/LM4/
- Loading branch information
1 parent
e3750c2
commit f3ce169
Showing
34 changed files
with
3,278 additions
and
2,095 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
Submodule LM4-driver
added at
c4d233
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
mkdir -p INPUT RESTART | ||
|
||
|
||
if [[ $atm_model == 'datm' ]]; then | ||
# need to make some adjustments for LM4's grid file requirements | ||
# assume LNDRES is defined | ||
|
||
if [[ $LNDRES == 'C96' ]]; then | ||
FV3_DIR=FV3_input_data | ||
else | ||
FV3_DIR=FV3_input_data${LNDRES#C} | ||
fi | ||
|
||
## get these if don't already have: | ||
rsync -arv @[INPUTDATA_ROOT]/CPL_FIX/a@[LNDRES]o@[OCNRES]/grid_spec.nc ./INPUT | ||
rsync -arv @[INPUTDATA_ROOT]/${FV3_DIR}/INPUT/@[LNDRES]_grid*.nc ./INPUT | ||
rsync -arv @[INPUTDATA_ROOT]/${FV3_DIR}/INPUT/grid_spec.nc ./INPUT/@[LNDRES]_mosaic.nc | ||
rsync -arv @[INPUTDATA_ROOT]/MOM6_FIX/@[OCNRES]/* ./INPUT | ||
|
||
elif [[ $atm_model == 'fv3' ]]; then | ||
# assume ATMRES is defined | ||
if [[ $ATMRES == 'C96' ]]; then | ||
FV3_DIR=FV3_input_data | ||
else | ||
FV3_DIR=FV3_input_data${ATMRES#C} | ||
fi | ||
|
||
fi | ||
|
||
|
||
|
||
## LM4 | ||
|
||
# out of the box, LM4 expects aXl referenced in grid_spec.nc for grid land area. Include them for now. | ||
|
||
# check if ATMRES or LNDRES is equal to C96: | ||
if [[ $ATMRES == 'C96' || $LNDRES == 'C96' ]]; then | ||
tar -xf @[INPUTDATA_LM4]/c96_grid/c96_OM4_025_grid_No_mg_drag_v20160808.tar -C ./INPUT/ \ | ||
--wildcards "C96_mosaic_tile?XC96_mosaic_tile?.nc" | ||
|
||
tar -xvf @[INPUTDATA_LM4]/c96_LM4/c96_topo_rough_land.nc.tar -C ./INPUT/ | ||
else | ||
echo 'Only setup for C96 is supported' | ||
fi | ||
|
||
ln -s @[INPUTDATA_LM4]/common_LM4/biodata.nc ./INPUT/ | ||
ln -s @[INPUTDATA_LM4]/common_LM4/cover_type.nc ./INPUT/ | ||
ln -s @[INPUTDATA_LM4]/common_LM4/geohydrology.nc ./INPUT/ | ||
ln -s @[INPUTDATA_LM4]/common_LM4/geohydrology_table_2a2n.nc ./INPUT/ | ||
ln -s @[INPUTDATA_LM4]/common_LM4/ground_type.nc ./INPUT/ | ||
ln -s @[INPUTDATA_LM4]/common_LM4/landuse.nc ./INPUT/ | ||
ln -s @[INPUTDATA_LM4]/common_LM4/soil_brdf.nc ./INPUT/ | ||
ln -s @[INPUTDATA_LM4]/common_LM4/soil_type_hwsd_5minute.nc ./INPUT/soil_type.nc | ||
|
||
|
||
cd INPUT | ||
rsync -arv @[INPUTDATA_ROOT]/DATM_GSWP3_input_data/. . | ||
cd - | ||
|
||
SUFFIX=${RT_SUFFIX} | ||
# restart | ||
if [ $WARM_START = .true. ]; then | ||
# # NoahMP restart files | ||
# cp ../${DEP_RUN}${SUFFIX}/ufs.cpld.lnd.out.${RESTART_FILE_SUFFIX_SECS}.tile*.nc RESTART/. | ||
|
||
# LM4 restart files | ||
# expected checkpoint restarts are named like: YYYYMMDD.HHMMSS.*.res.tile?.nc | ||
|
||
cp ../${DEP_RUN}${RT_SUFFIX}/RESTART/${LM4_RESTART_PREFIX}.landuse.res ./INPUT/ | ||
cp ../${DEP_RUN}${RT_SUFFIX}/RESTART/${LM4_RESTART_PREFIX}.cana.res.tile*.nc ./INPUT/ | ||
cp ../${DEP_RUN}${RT_SUFFIX}/RESTART/${LM4_RESTART_PREFIX}.glac.res.tile*.nc ./INPUT/ | ||
cp ../${DEP_RUN}${RT_SUFFIX}/RESTART/${LM4_RESTART_PREFIX}.lake.res.tile*.nc ./INPUT/ | ||
cp ../${DEP_RUN}${RT_SUFFIX}/RESTART/${LM4_RESTART_PREFIX}.land.res.tile*.nc ./INPUT/ | ||
cp ../${DEP_RUN}${RT_SUFFIX}/RESTART/${LM4_RESTART_PREFIX}.snow.res.tile*.nc ./INPUT/ | ||
cp ../${DEP_RUN}${RT_SUFFIX}/RESTART/${LM4_RESTART_PREFIX}.soil.res.tile*.nc ./INPUT/ | ||
cp ../${DEP_RUN}${RT_SUFFIX}/RESTART/${LM4_RESTART_PREFIX}.vegn1.res.tile*.nc ./INPUT/ | ||
cp ../${DEP_RUN}${RT_SUFFIX}/RESTART/${LM4_RESTART_PREFIX}.vegn2.res.tile*.nc ./INPUT/ | ||
|
||
# remove datestamp | ||
rename ${LM4_RESTART_PREFIX}. "" INPUT/${LM4_RESTART_PREFIX}.*.res* | ||
|
||
# CMEPS restart and pointer files | ||
RFILE1=ufs.cpld.cpl.r.${RESTART_FILE_SUFFIX_SECS}.nc | ||
cp ../${DEP_RUN}${SUFFIX}/RESTART/${RFILE1} RESTART/. | ||
ls -1 "RESTART/${RFILE1}">rpointer.cpl | ||
|
||
# CDEPS restart and pointer files | ||
RFILE2=ufs.cpld.datm.r.${RESTART_FILE_SUFFIX_SECS}.nc | ||
cp ../${DEP_RUN}${SUFFIX}/${RFILE2} RESTART/. | ||
ls -1 "RESTART/${RFILE2}">rpointer.atm | ||
fi | ||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.