Skip to content

Commit fa8e2ea

Browse files
committed
Add check for bad number of openmp tasks in setup.py
1 parent 17beca1 commit fa8e2ea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ush/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,6 +1735,8 @@ def _get_location(xcs, fmt, expt_cfg):
17351735
FV3_HRRR, FV3_HRRR_gf, and RRFS_sas""" ))
17361736
if fire_conf["FIRE_NUM_TASKS"] < 1:
17371737
raise ValueError("FIRE_NUM_TASKS must be > 0 if UFS_FIRE is True")
1738+
if fire_conf["OMP_NUM_THREADS_FIRE"] < 1:
1739+
raise ValueError("FIRE_NUM_TASKS must be > 0 if UFS_FIRE is True")
17381740
if fire_conf["FIRE_NUM_TASKS"] > 1:
17391741
raise ValueError("FIRE_NUM_TASKS > 1 not yet supported")
17401742

0 commit comments

Comments
 (0)