Skip to content

Commit 473193b

Browse files
committed
Use latest E3SM Diags
1 parent ea04d67 commit 473193b

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

templates/default.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ output_format_subplot = string_list(default=list(""))
9393
multiprocessing = boolean(default=True)
9494
num_workers = integer(default=24)
9595
vars = string(default="FSNTOA,FLUT,FSNT,FLNT,FSNS,FLNS,SHFLX,QFLX,TAUX,TAUY,PRECC,PRECL,PRECSC,PRECSL,TS,TREFHT,CLDTOT,CLDHGH,CLDMED,CLDLOW,U")
96+
environment_commands = string(default="")
9697

9798
[[__many__]]
9899
active = boolean(default=None)
@@ -113,6 +114,7 @@ vars = string(default="FSNTOA,FLUT,FSNT,FLNT,FSNS,FLNS,SHFLX,QFLX,TAUX,TAUY,PREC
113114
multiprocessing = boolean(default=None)
114115
num_workers = integer(default=None)
115116
vars = string(default=None)
117+
environment_commands = string(default=None)
116118

117119
[e3sm_diags_vs_model]
118120
active = boolean(default=True)

templates/e3sm_diags.bash

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#!/bin/bash
22
{% include 'slurm_header.sh' %}
3-
{% include 'e3sm_unified' %}sh
43

5-
# To load custom E3SM Diags environment, comment out line above using {# ... #}
6-
# and uncomment lines below
74

8-
#module load anaconda3/2019.03
9-
#source /share/apps/anaconda3/2019.03/etc/profile.d/conda.sh
10-
#conda activate e3sm_diags_env_dev
5+
{%- if environment_commands != "" -%}
6+
{{ environment_commands }}
7+
{%- else -%}
8+
{% include 'e3sm_unified' %}sh
9+
{%- endif %}
1110

1211
# Turn on debug output if needed
1312
debug={{ debug }}
@@ -133,6 +132,7 @@ param.output_format = {{ output_format }}
133132
param.output_format_subplot = {{ output_format_subplot }}
134133
param.multiprocessing = {{ multiprocessing }}
135134
param.num_workers = {{ num_workers }}
135+
#param.fail_on_incomplete = True
136136
params = [param]
137137
138138
{%- if "enso_diags" in sets %}
@@ -156,9 +156,12 @@ qbo_param.test_name = short_name
156156
qbo_param.test_start_yr = start_yr
157157
qbo_param.test_end_yr = end_yr
158158
qbo_param.ref_start_yr = ref_start_yr
159-
qbo_param.ref_end_yr = ref_start_yr + num_years - 1
160-
if (qbo_param.ref_end_yr <= {{ ref_final_yr }}):
161-
params.append(qbo_param)
159+
ref_end_yr = ref_start_yr + num_years - 1
160+
if (ref_end_yr <= {{ ref_final_yr }}):
161+
qbo_param.ref_end_yr = ref_end_yr
162+
else:
163+
qbo_param.ref_end_yr = {{ ref_final_yr }}
164+
params.append(qbo_param)
162165
{%- endif %}
163166
164167
@@ -174,10 +177,6 @@ params.append(ts_param)
174177
175178
# Run
176179
runner.sets_to_run = {{ sets }}
177-
{%- if "qbo" in sets %}
178-
if (qbo_param.ref_end_yr > {{ ref_final_yr }}):
179-
runner.sets_to_run.remove('qbo')
180-
{%- endif %}
181180
runner.run_diags(params)
182181
183182
EOF

0 commit comments

Comments
 (0)