Skip to content

Commit 3cb2ab1

Browse files
committed
Update UFS WM hash to main repository, add new variable FIRE_GEO_EM_FILE for specifying netCDF input filename (defaults to previous behavior)
1 parent 261c904 commit 3cb2ab1

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

Externals.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ required = True
99

1010
[ufs-weather-model]
1111
protocol = git
12-
repo_url = https://github.com/mkavulich/ufs-weather-model
12+
repo_url = https://github.com/ufs-community/ufs-weather-model
1313
# Specify either a branch name or a hash but not both.
14-
branch = feature/fire_MPI
15-
#hash = 855243a
14+
#branch = develop
15+
hash = 0de77d26
1616
local_path = sorc/ufs-weather-model
1717
required = True
1818

scripts/exregional_run_fcst.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ if [ $(boolify "${UFS_FIRE}") = "TRUE" ]; then
831831
$settings"
832832
fi
833833
# Link fire input file
834-
create_symlink_to_file ${FIRE_INPUT_DIR}/geo_em.d01.nc geo_em.d01.nc FALSE
834+
create_symlink_to_file ${FIRE_GEO_EM_FILE} geo_em.d01.nc FALSE
835835
fi
836836
#
837837
#-----------------------------------------------------------------------

ush/config_defaults.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3116,6 +3116,7 @@ fire:
31163116
envvars:
31173117
UFS_FIRE: False
31183118
FIRE_INPUT_DIR: ""
3119+
FIRE_GEO_EM_FILE: '{{ [fire.envvars.FIRE_INPUT_DIR, "geo_em.d01.nc"]|path_join}}'
31193120
DT_FIRE: 0.5
31203121
OUTPUT_DT_FIRE: 300
31213122
FIRE_NUM_TASKS: 0

ush/setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,13 +1715,12 @@ def _get_location(xcs, fmt, expt_cfg):
17151715
("UFS_FIRE == True but UFS SRW has not been built for fire coupling;",
17161716
"see users guide for details")
17171717
)
1718-
fire_input_file = Path(fire_conf_vars["FIRE_INPUT_DIR"], "geo_em.d01.nc")
1719-
if not Path(fire_input_file).is_file():
1718+
if not Path(fire_conf_vars["FIRE_GEO_EM_FILE"]).is_file():
17201719
raise FileNotFoundError(
17211720
dedent(
17221721
f"""
1723-
The fire input file (geo_em.d01.nc) does not exist in the specified directory:
1724-
{fire_conf["FIRE_INPUT_DIR"]}
1722+
The specified fire input file does not exist:
1723+
{fire_conf_vars["FIRE_GEO_EM_FILE"]}
17251724
Check that the specified path is correct, and the file exists and is readable
17261725
"""
17271726
)

0 commit comments

Comments
 (0)