Skip to content

Commit a1de804

Browse files
committed
decreasing default restart interval to avoid overflow
1 parent 9751e1d commit a1de804

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

splib/modfac.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Factory method for model creation
2929
# TODO: use kwargs...
3030
def create_model(model_type, inputdir, workdir, nprocs=1, redirect="file", channel_type="mpi", restart=False,
31-
starttime=None, index=-1, qt_forcing="sp", trestart=10000000 | units.s):
31+
starttime=None, index=-1, qt_forcing="sp", trestart=1000000 | units.s):
3232
ofile = os.path.join(workdir, model_type + ".out")
3333
efile = os.path.join(workdir, model_type + ".err")
3434
if model_type == oifs_type:

splib/splib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def les_init(lestype, inputdir, workdir, starttime, index):
455455
if not restart:
456456
pass
457457
# add spinup time to trestart
458-
trestart = 10000000 | units.s # large value -> no restart file written
458+
trestart = 1000000 | units.s # large value -> no restart file written
459459
model = modfac.create_model(typekey, inputdir, workdir,
460460
nprocs=les_num_procs,
461461
redirect=les_redirect,

0 commit comments

Comments
 (0)