Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix no_batch determination in case_submit #3205

Merged
merged 1 commit into from
Sep 25, 2019

Conversation

jgfouca
Copy link
Member

@jgfouca jgfouca commented Sep 25, 2019

Fixes #3166

[BFB]

@jgfouca jgfouca added Scripts bug fix PR BFB PR leaves answers BFB CIME labels Sep 25, 2019
@jgfouca jgfouca self-assigned this Sep 25, 2019
@jgfouca
Copy link
Member Author

jgfouca commented Sep 25, 2019

@jedwards4b , will you take a quick look at this? This bug was introduced into E3SM in a recent CIME update. My hunch is that no_batch should always be true if env_batch.get_batch_system_type() == "none".

@jedwards4b
Copy link
Contributor

There is also a bug a couple of lines down:
replace

if batch_system != "none" and env_batch_has_changed or external_workflow:

with

if batch_system != "none" and (env_batch_has_changed or external_workflow):

@jgfouca
Copy link
Member Author

jgfouca commented Sep 25, 2019

@jedwards4b , I think you are talking about this line:

if batch_system != "none" and env_batch_has_changed and not external_workflow:

I believe this line is correct.

@jedwards4b
Copy link
Contributor

hmm - you have an and where I have an or - is that logically the same as adding ()? I'll need to think about it.

jgfouca added a commit that referenced this pull request Sep 25, 2019
Fix no_batch determination in case_submit

Fixes #3166

[BFB]

* origin/jgfouca/cime/fix_batch_submit:
  Fix no_batch determination in case_submit
jgfouca added a commit that referenced this pull request Sep 25, 2019
Fix no_batch determination in case_submit

Fixes #3166

[BFB]

* origin/jgfouca/cime/fix_batch_submit:
  Fix no_batch determination in case_submit
@jgfouca jgfouca merged commit 0ac46c7 into master Sep 25, 2019
@jgfouca jgfouca deleted the jgfouca/cime/fix_batch_submit branch September 25, 2019 21:52
@jgfouca
Copy link
Member Author

jgfouca commented Sep 25, 2019

@jedwards4b , we can resolve in the next split.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

case.submit error on anlworkstation
2 participants