Skip to content

Commit

Permalink
bonus bugfix: wrong variable name used
Browse files Browse the repository at this point in the history
  • Loading branch information
eimrek committed Mar 21, 2021
1 parent e9a32a7 commit cdb0329
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aiida/schedulers/plugins/lsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def _get_submit_script_header(self, job_tmpl):
raise ValueError(
'max_memory_kb must be '
"a positive integer (in kB)! It is instead '{}'"
''.format((job_tmpl.MaxMemoryKb))
''.format((job_tmpl.max_memory_kb))
)
# The -M option sets a per-process (soft) memory limit for all the
# processes that belong to this job
Expand Down
2 changes: 1 addition & 1 deletion aiida/schedulers/plugins/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def _get_submit_script_header(self, job_tmpl):
raise ValueError(
'max_memory_kb must be '
"a positive integer (in kB)! It is instead '{}'"
''.format((job_tmpl.MaxMemoryKb))
''.format((job_tmpl.max_memory_kb))
)
# --mem: Specify the real memory required per node in MegaBytes.
# --mem and --mem-per-cpu are mutually exclusive.
Expand Down

0 comments on commit cdb0329

Please sign in to comment.