diff --git a/cycled_exp.py b/cycled_exp.py index ff30d157064076492a21e875e61f5fcf7f1b896f..889fe1822cf6381a954749d6ed162d8901d411b4 100755 --- a/cycled_exp.py +++ b/cycled_exp.py @@ -7,7 +7,7 @@ if __name__ == "__main__": """ Run a cycled OSSE with WRF and DART. """ - w = WorkFlows(exp_config='cfg.py', server_config='jet.py') + w = WorkFlows(exp_config='cfg.py', server_config='srvx1.py') timedelta_integrate = dt.timedelta(minutes=15) timedelta_btw_assim = dt.timedelta(minutes=15) @@ -15,7 +15,7 @@ if __name__ == "__main__": id = None if False: # warm bubble - prior_path_exp = '/jetfs/home/lkugler/data/sim_archive/exp_v1.19_P3_wbub7_noDA' + prior_path_exp = '/jetfs/scratch/lkugler/data/sim_archive/exp_v1.19_P3_wbub7_noDA' init_time = dt.datetime(2008, 7, 30, 12) time = dt.datetime(2008, 7, 30, 12, 30) @@ -27,7 +27,7 @@ if __name__ == "__main__": # id = w.wrfinput_insert_wbubble(depends_on=id) if True: # random - prior_path_exp = '/jetfs/home/lkugler/data/sim_archive/exp_v1.19_P2_noDA' + prior_path_exp = '/mnt/jetfs/scratch/lkugler/data/sim_archive/exp_v1.19_P2_noDA' init_time = dt.datetime(2008, 7, 30, 12) time = dt.datetime(2008, 7, 30, 13) diff --git a/dartwrf/utils.py b/dartwrf/utils.py index 54dcf78cce5b3b751de3e536e9c838a4c1c561b7..1e81157ce8dadf489f5c7a7bbca8054597b98e84 100755 --- a/dartwrf/utils.py +++ b/dartwrf/utils.py @@ -70,7 +70,9 @@ class ClusterConfig(object): ).run(cmd, depends_on=depends_on) else: print(cmd) - os.system(cmd) + returncode = os.system(cmd) + if returncode != 0: + raise Exception('Error running command: '+cmd) userhome = os.path.expanduser('~')