Skip to content

Commit 5a03dcc

Browse files
Reorder CVDP call in run_adf_diag
This got moved by mistake to before the time series generation, this will break if the CVDP is reliant on time series files generated by the ADF
1 parent e027726 commit 5a03dcc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

run_adf_diag

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ if __name__ == "__main__":
145145
#Initalize CAM diagnostics object:
146146
diag = AdfDiag(config_yaml, debug=config_debug)
147147

148-
#Call the CVDP:
149-
if diag.get_cvdp_info('cvdp_run'):
150-
diag.setup_run_cvdp()
151-
152148
#Create model time series.
153149
#Please note that this is an internal ADF function:
154150
diag.create_time_series()
@@ -157,6 +153,10 @@ if __name__ == "__main__":
157153
if not diag.compare_obs:
158154
diag.create_time_series(baseline=True)
159155

156+
#Call the CVDP:
157+
if diag.get_cvdp_info('cvdp_run'):
158+
diag.setup_run_cvdp()
159+
160160
#Call the MDTF:
161161
if diag.get_mdtf_info('mdtf_run'):
162162
mdtf_proc = diag.setup_run_mdtf() #returns mdtf_proc for subprocess control
@@ -207,4 +207,4 @@ if __name__ == "__main__":
207207
#End diag script
208208
#+++++++++++++++
209209
print('\nADF diagnostics has completed successfully.')
210-
sys.exit(0)
210+
sys.exit(0)

0 commit comments

Comments
 (0)