Skip to content

Commit

Permalink
Merge branch 'jgfouca/cime/fix_env_batch_lsf_env' into master (PR #3132)
Browse files Browse the repository at this point in the history
Fix batch submission command for summit

A recent CIME update broke the case where an lsf batch
system was configured to pass arguments via batch_env.

This PR fixes the issue by changing the command formation logic
to not prepend lfs args if batch_env is set.

Fixes #3124

[BFB]

* origin/jgfouca/cime/fix_env_batch_lsf_env:
  Fix batch submission command for summit
  • Loading branch information
jgfouca committed Aug 15, 2019
2 parents e8cfda0 + a2ffafc commit b2f0308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cime/scripts/lib/CIME/XML/env_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def _submit_single_job(self, case, job, dep_jobs=None, allow_fail=False,
batch_env_flag = self.get_value("batch_env", subgroup=None)
run_args = self._build_run_args_str(job, False, skip_pnl=skip_pnl, set_continue_run=resubmit_immediate,
submit_resubmits=not resubmit_immediate)
if batch_system == 'lsf':
if batch_system == 'lsf' and not batch_env_flag:
sequence = (run_args, batchsubmit, submitargs, batchredirect, get_batch_script_for_job(job))
elif batch_env_flag:
sequence = (batchsubmit, submitargs, run_args, batchredirect, get_batch_script_for_job(job))
Expand Down

0 comments on commit b2f0308

Please sign in to comment.