Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions GEOSldas_App/ldas.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ def __init__(self, cmdLineArgs):
gridname_ = gridname_.replace('SMAP-','').replace('-M','_M')
self.ExeInputs['GRIDNAME'] = gridname_

# to run routing on standard EASE tile space, need EASE_PFAF_TILE_FILE
if (self.run_route > 0 and 'EASE' in self.ExeInputs['GRIDNAME']):
tmp_ = glob.glob(inpgeom_ + '*Pfafstetter.nc4' + domain_)
if (len(tmp_) > 0) :
Expand Down Expand Up @@ -763,6 +764,10 @@ def createLnRstBc(self) :
self.isZoomIn= True
#os.remove(self.domain_def.name)

# if running routing, make sure domain is global
if self.run_route>0 and self.isZoomIn:
exit( "Must have global domain to run routing model, RUN_ROUTE=" + self.run_route )

# update tile domain
if self.isZoomIn:
newZoominTile = tile+'.domain'
Expand Down Expand Up @@ -908,11 +913,11 @@ def createLnRstBc(self) :
for iens in range(self.nens) :
ensdir = self.ensdirs[iens]
ensid = self.ensids[iens]
myCatchRst = myRstDir+'/'+self.catch +ensid +'_internal_rst'
myLandiceRst = myRstDir+'/'+ 'landice' +ensid +'_internal_rst'
myVegRst = myRstDir+'/'+ 'vegdyn'+ensid +'_internal_rst'
myCatchRst = myRstDir+'/'+ self.catch +ensid +'_internal_rst'
myLandiceRst = myRstDir+'/'+ 'landice' +ensid +'_internal_rst'
myVegRst = myRstDir+'/'+ 'vegdyn' +ensid +'_internal_rst'
myPertRst = myRstDir+'/'+ 'landpert' +ensid +'_internal_rst'
myRouteRst = myRstDir+'/'+ 'route' +ensid +'_internal_rst'
myRouteRst = myRstDir+'/'+ 'route' +ensid +'_internal_rst'

catchRstFile = ''
vegdynRstFile = ''
Expand Down
Loading