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

Fixed option to read same random seed init file at start of run

parent 56581284
......@@ -253,7 +253,7 @@ class CycleControl(dict):
def read_random_seed(self, first=False):
if first:
filename = self['random.seed.init']
filename = self.dasystem['random.seed.init']"Initialised random seed from: %s"%filename)
filename = os.path.join(self['dir.restart'], 'randomseed_%s.pickle' % self['da.restart.tstamp'].strftime('%Y%m%d'))
......@@ -334,7 +334,7 @@ class CycleControl(dict):
for filename in glob.glob(os.path.join(self['dir.exec'],'*.pickle')):'Deleting pickle file %s to make sure the correct regions are used'%os.path.split(filename)[1])
if self.has_key('random.seed.init'):
if self.dasystem.has_key('random.seed.init'):
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