Commit 2862029d authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

changes location of extra_slurm_lines

parent 5eeb24b3
......@@ -4,18 +4,18 @@
# #
# This file is part of bfps. #
# #
# TurTLE is free software: you can redistribute it and/or modify #
# TurTLE is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published #
# by the Free Software Foundation, either version 3 of the License, #
# or (at your option) any later version. #
# #
# TurTLE is distributed in the hope that it will be useful, #
# TurTLE is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with TurTLE. If not, see <http://www.gnu.org/licenses/> #
# along with TurTLE. If not, see <http://www.gnu.org/licenses/> #
# #
# Contact: Cristian.Lalescu@ds.mpg.de #
# #
......@@ -678,9 +678,6 @@ class _code(_base):
script_file.write('#SBATCH -o ' + out_file + '\n')
# set up environment
if 'extra_slurm_lines' in self.host_info.keys():
for line in self.host_info['extra_slurm_lines']:
script_file.write(line + '\n')
if self.host_info['explicit_slurm_environment']:
script_file.write('#SBATCH --partition={0}\n'.format(
self.host_info['environment']))
......@@ -720,6 +717,9 @@ class _code(_base):
script_file.write('#SBATCH --mail-type=none\n')
script_file.write('#SBATCH --time={0}:{1:0>2d}:00\n'.format(hours, minutes))
if 'extra_slurm_lines' in self.host_info.keys():
for line in self.host_info['extra_slurm_lines']:
script_file.write(line + '\n')
## following cleans up environment for job.
## put these in the 'extra_slurm_lines' list if you need them
## make sure that "~/.config/TurTLE/bashrc" exists and builds desired job environment
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment