Skip to content

Commit 46517bf

Browse files
committed
fix landice restart
1 parent a968af0 commit 46517bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

GEOSldas_App/ldas.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -973,11 +973,11 @@ def createLnRstBc(self) :
973973

974974
landiceRstFile = ''
975975
if self.with_landice :
976-
if self.ExeInputs['RESTART'].isdigit():
977-
if int(self.ExeInputs['RESTART']) == 0 :
978-
print("RESTART=0 not supported for landice tiles. Please use RESTART=M (MERRA-2) or RESTART=2.")
976+
if RESTART_str == '0' :
977+
exit("RESTART=0 not supported for landice tiles. Please use RESTART=M, 1, or 2")
978+
if RESTART_str == '1' :
979979
landiceRstFile = rstpath+ensdir +'/'+ y4m2+'/'+self.ExeInputs['RESTART_ID']+'.'+'landice_internal_rst.'+y4m2d2_h2m2
980-
else:
980+
if RESTART_str == '2' or RESTART_str == 'M':
981981
landiceRstFile = glob.glob(self.exphome+'/'+exp_id+'/mk_restarts/*'+'landice_internal_rst.'+YYYYMMDD+'*')[0]
982982

983983
if os.path.isfile(landiceRstFile) :

0 commit comments

Comments
 (0)