Skip to content

Commit

Permalink
Fixes for broken stuff on master
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Jul 22, 2019
1 parent 8109c23 commit 0bcb41b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/lib/CIME/XML/env_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,11 +503,11 @@ def submit_jobs(self, case, no_batch=False, job=None, user_prereq=None, skip_pnl

if self._batchtype == "cobalt" or external_workflow:
break
if not external_workflow:

if not external_workflow and not no_batch:
expect(batch_job_id, "No result from jobs {}".format(jobs))
prev_job = batch_job_id


if dry_run:
return jobcmds
else:
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/CIME/XML/env_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_job_specs(self, job):
tasks_per_node = self.get_value("tasks_per_node", subgroup=job)
thread_count = self.get_value("thread_count", subgroup=job)
num_nodes = None
if task_count is not None:
if task_count is not None and tasks_per_node is not None:
task_count = int(task_count)
num_nodes = int(math.ceil(float(task_count)/float(tasks_per_node)))
tasks_per_node = task_count//num_nodes
Expand Down
1 change: 0 additions & 1 deletion scripts/lib/CIME/case/case_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ def check_case(self):
# the ww3 buildnml has dependancies on inputdata so we must run it again
self.create_namelists(component='WAV')


expect(self.get_value("BUILD_COMPLETE"), "Build complete is "
"not True please rebuild the model by calling case.build")
logger.info("Check case OK")
Expand Down

0 comments on commit 0bcb41b

Please sign in to comment.