From b78608a4caebe2ceb6f65bd661500125079cfd78 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Tue, 16 Aug 2016 13:03:41 -0600 Subject: [PATCH] fix indent --- utils/python/CIME/XML/env_batch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/python/CIME/XML/env_batch.py b/utils/python/CIME/XML/env_batch.py index 477c1ad35090..581610d01848 100644 --- a/utils/python/CIME/XML/env_batch.py +++ b/utils/python/CIME/XML/env_batch.py @@ -330,6 +330,8 @@ def get_submit_args(self, case, job): if name is None: submitargs+=" %s"%flag else: + if name.startswith("$"): + name = name[:1] val = case.get_value(name,subgroup=job) if val is None: val = case.get_resolved_value(name) @@ -479,7 +481,7 @@ def select_best_queue(self, num_pes, job=None): return queue.text # if the fullsum is between the min and max # jobs, then use this queue. elif jobmin is not None and jobmax is not None and num_pes >= int(jobmin) and num_pes <= int(jobmax): - return queue.text + return queue.text return None def get_max_walltime(self, queue):