Skip to content

Commit 74725f5

Browse files
committed
skip perturb if not defined in config
1 parent dcce05a commit 74725f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

NEDAS/schemes/offline_filter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def __call__(self, c) -> None:
4242

4343
if c.run_preproc:
4444
self.run_step(c, 'preprocess', mpi=False)
45-
self.run_step(c, 'perturb', mpi=True)
45+
if c.perturb:
46+
self.run_step(c, 'perturb', mpi=True)
4647

4748
##assimilation step
4849
if c.run_analysis and c.time >= c.time_analysis_start and c.time <= c.time_analysis_end:

0 commit comments

Comments
 (0)