From d2e4b11ee0cff34015c9b94c77e0469c8ee891b5 Mon Sep 17 00:00:00 2001 From: James Foucar Date: Tue, 18 Apr 2017 18:08:45 -0400 Subject: [PATCH] Fix titan problem Incorrect merging of spare nodes and aprun optimized nodes features --- scripts/lib/CIME/case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/CIME/case.py b/scripts/lib/CIME/case.py index ca727570fa7..01cd66de356 100644 --- a/scripts/lib/CIME/case.py +++ b/scripts/lib/CIME/case.py @@ -1086,7 +1086,7 @@ def get_mpirun_cmd(self, job="case.run"): # special case for aprun if executable == "aprun": aprun_cmd, num_nodes = get_aprun_cmd_for_case(self, run_exe) - expect(num_nodes == self.num_nodes, "Not using optimized num nodes") + expect( (num_nodes + self.spare_nodes) == self.num_nodes, "Not using optimized num nodes") return aprun_cmd + " " + run_misc_suffix else: mpi_arg_string = " ".join(args.values())