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']
logging.info("Initialised random seed from: %s"%filename)
else:
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')):
logging.info('Deleting pickle file %s to make sure the correct regions are used'%os.path.split(filename)[1])
os.remove(filename)
if self.has_key('random.seed.init'):
if self.dasystem.has_key('random.seed.init'):
self.read_random_seed(True)
self.parse_times()
......
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