Commit e9e46b00 authored by Ingrid Luijkx's avatar Ingrid Luijkx
Browse files

Small changes for cape grim

parent c6a9df82
......@@ -43,7 +43,8 @@ class CapeGrimPlatform(Platform):
job until the submitted job in this template has been completed fully.
"""
template = """## \n""" + \
template = """#!/bin/sh \n""" + \
"""## \n""" + \
"""## This is a set of dummy names, to be replaced by values from the dictionary \n""" + \
"""## Please make your own platform specific template with your own keys and place it in a subfolder of the da package.\n """ + \
"""## \n""" + \
......@@ -55,6 +56,8 @@ class CapeGrimPlatform(Platform):
"""#$ jobshell \n""" + \
"""\n""" + \
"""source /usr/local/Modules/3.2.8/init/sh\n""" + \
"""source /opt/intel/bin/ifortvars.sh intel64\n""" + \
"""export HOST='capegrim'\n""" + \
"""module load python\n""" + \
"""\n"""
......
......@@ -538,7 +538,7 @@ class CycleControl(dict):
nextjobid = '%s'% ( (self['time.end']+cycle*self['cyclelength']).strftime('%Y%m%d'),)
nextrestartfilename = self['da.restart.fname'].replace(jobid,nextjobid)
nextlogfilename = logfile.replace(jobid,nextjobid)
template += '\nexport icycle_in_job=%d\npython %s rc=%s %s >&%s\n' % (cycle+1,execcommand, nextrestartfilename, join(self.opts, ''), nextlogfilename,)
template += '\nexport icycle_in_job=%d\npython %s rc=%s %s >&%s &\n' % (cycle+1,execcommand, nextrestartfilename, join(self.opts, ''), nextlogfilename,)
# write and submit
self.daplatform.write_job(jobfile, template, jobid)
......
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