From fcb412e96a620ffa55de5f97ab54d0a82f54e213 Mon Sep 17 00:00:00 2001 From: James Foucar Date: Thu, 16 Mar 2017 15:41:07 -0500 Subject: [PATCH] Fix for blues submit. Make 'batch' queue the default. Hack up some python so that -q batch is not passed to qsub. [BFB] --- cime_config/acme/machines/config_batch.xml | 3 ++- utils/python/CIME/XML/env_batch.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cime_config/acme/machines/config_batch.xml b/cime_config/acme/machines/config_batch.xml index 2987a0468f95..556757d2c9cb 100644 --- a/cime_config/acme/machines/config_batch.xml +++ b/cime_config/acme/machines/config_batch.xml @@ -159,7 +159,8 @@ -l nodes={{ num_nodes }}:ppn={{ tasks_per_node }} - shared + shared + batch diff --git a/utils/python/CIME/XML/env_batch.py b/utils/python/CIME/XML/env_batch.py index 58af0d1ba748..8ad9021aa9ba 100644 --- a/utils/python/CIME/XML/env_batch.py +++ b/utils/python/CIME/XML/env_batch.py @@ -278,6 +278,10 @@ def get_submit_args(self, case, job): if flag == "-n" and rval<= 0: rval = 1 + if flag == "-q" and rval == "batch" and case.get_value("MACH") == "blues": + # Special case. Do not provide '-q batch' for blues + continue + if flag.rfind("=", len(flag)-1, len(flag)) >= 0 or\ flag.rfind(":", len(flag)-1, len(flag)) >= 0: submitargs+=" %s%s"%(flag,str(rval).strip())