Skip to content

Commit dfa9ae0

Browse files
committed
Adding new WIND_VINTERP_OPT option, add OMP_NUM_THREADS_FIRE (not tested for compile yet)
1 parent f8288f2 commit dfa9ae0

5 files changed

Lines changed: 18 additions & 5 deletions

File tree

Externals.cfg

Lines changed: 2 additions & 2 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/ufs-community/ufs-weather-model
12+
repo_url = https://github.com/masih-e/ufs-weather-model
1313
# Specify either a branch name or a hash but not both.
1414
#branch = develop
15-
hash = 93d51ae
15+
hash = 3efc3422
1616
local_path = sorc/ufs-weather-model
1717
required = True
1818

parm/ufs.configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ AQM_attributes::
3333
{% if ufs_fire %}
3434
# FIRE #
3535
FIRE_model: fire_behavior
36-
FIRE_petlist_bounds: {{ FIRE_pb }}
36+
FIRE_petlist_bounds: {{ FIRE_pb }}{{
37+
FIRE_omp_num_threads_line }}
3738
FIRE_attributes::
3839
Verbosity = high
3940
Diagnostic = 0

ush/config_defaults.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3050,14 +3050,17 @@ fire:
30503050
# The fire behavior component’s output timestep
30513051
#
30523052
# FIRE_NUM_TASKS
3053-
# Number of MPI tasks assigned to the FIRE_BEHAVIOR component.
3053+
# Number of MPI tasks assigned to the fire behavior component.
30543054
#
3055+
# OMP_NUM_THREADS_FIRE
3056+
# Number of OpenMP tasks assigned to the fire behavior component.
30553057
envvars:
30563058
UFS_FIRE: False
30573059
FIRE_INPUT_DIR: ""
30583060
DT_FIRE: 0.5
30593061
OUTPUT_DT_FIRE: 300
30603062
FIRE_NUM_TASKS: 0
3063+
OMP_NUM_THREADS_FIRE: 1
30613064

30623065

30633066
# The following options control namelist values in the Community Fire
@@ -3148,3 +3151,9 @@ fire:
31483151
FIRE_IGNITION_START_TIME: 6480
31493152
FIRE_IGNITION_END_TIME: 7000
31503153

3154+
# WIND_VINTERP_OPT
3155+
# Option for which wind variable should be used for driving fire behavior
3156+
# 0: Use prognostic 3-d wind
3157+
# 1: Use diagnosed 10-meter wind
3158+
WIND_VINTERP_OPT: 0
3159+

ush/create_ufs_configure_file.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def create_ufs_configure_file(run_dir,cfg):
5555
f"\nATM_omp_num_threads: {cfg['OMP_NUM_THREADS_RUN_FCST']}"
5656
atm_diag_line = ''
5757
fire_petlist_bounds = f'{fire_start} {fire_end}'
58+
fire_omp_num_threads_line = \
59+
f"\nFIRE_omp_num_threads: {cfg['OMP_NUM_THREADS_FIRE']}"
5860
runseq = [ f" @{cfg['DT_ATMOS']}\n",
5961
" ATM -> FIRE\n",
6062
" FIRE -> ATM :remapmethod=conserve\n",
@@ -114,6 +116,7 @@ def create_ufs_configure_file(run_dir,cfg):
114116
settings["AQM_pb"] = aqm_petlist_bounds
115117
if cfg["UFS_FIRE"]:
116118
settings["FIRE_pb"] = fire_petlist_bounds
119+
settings["FIRE_omp_num_threads_line"] = fire_omp_num_threads_line
117120

118121
print_info_msg(
119122
dedent(

ush/generate_FV3LAM_wflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def generate_FV3LAM_wflow(
461461
]
462462

463463
# These settings do not get added to namelist, or are handled elsewhere
464-
pass_settings = ["UFS_FIRE", "FIRE_INPUT_DIR", "FIRE_NUM_TASKS", "envvars"]
464+
pass_settings = ["UFS_FIRE", "FIRE_INPUT_DIR", "FIRE_NUM_TASKS", "OMP_NUM_THREADS_FIRE", "envvars"]
465465
pass_settings.extend(each_ignit)
466466

467467
for setting in expt_config["fire"]:

0 commit comments

Comments
 (0)