@@ -14,18 +14,12 @@ program mk_runofftbl
1414! directing runoff to its ocean sink. The inputs are (i) bcs geometry files associated with the Gridname
1515! and (ii) a binary file ("Outlet_latlon.43200x21600") that provides the land raster grid cells where the
1616! outlets are located. The latter file is either created by [..]/Raster/preproc/routing/run_routing_raster.py
17- ! or from Randy's ([email protected] ) old file under {MAKE_BCS_INPUT_DIR}/land/route/v1.17+ ! or from Randy's ([email protected] ) old file under {MAKE_BCS_INPUT_DIR}/land/route/v1. The version18+ ! of the outlet file used by mk_runofftbl.x is determined via the LBCSV argument.
1819! The program first moves the outlet locations from the land raster grid cells to the nearest ocean pixels
1920! by calling outlets_to_ocean() and then generates the runoff table files.
2021! The subroutine outlets_to_ocean() currently works only for the MOM5 and MOM6 tripolar ocean grids.
2122!
22- ! Basically based on bcs version we would use have these 3 options:
23- ! =======================================================
24- ! bcs version --> Outlet lat/lon file version
25- !- --------------------------------------------------
26- ! v12 --> (new) v2 (produced with Yujin's pre-processing routines)
27- ! v11 --> (old) v1 (produced with Randy's old file)
28- ! otherwise --> N/A (do not run routing module of make_bcs)
2923! =========================================================
3024!
3125! Yujin Zeng - June 17, 2024
@@ -104,11 +98,11 @@ program mk_runofftbl
10498 call get_command_argument(nxt,arg)
10599 end do
106100
107- if (trim (OUTLETV)==" v1" .or. trim (OUTLETV)==" v2" )then
108- fileLL= trim (MAKE_BCS_INPUT_DIR)// ' /land/route/' // trim (OUTLETV)// ' /Outlet_latlon.'
101+ if (trim (OUTLETV)==" v1" .or. trim (OUTLETV)==" v2" ) then
102+ fileLL= trim (MAKE_BCS_INPUT_DIR)// ' /land/route/' // trim (OUTLETV)// ' /Outlet_latlon.'
109103 else
110- print * , " Routing files will not be produced with the selected land BCs version"
111- stop
104+ print * , " Routing files will not be produced with the selected land BCs version (too old) "
105+ stop
112106 endif
113107
114108 ! ------------------------------------------------------------------
@@ -730,9 +724,9 @@ subroutine read_oceanModel_mapl(res_MAPL,wetMask,nx,ny)
730724
731725 ! read "mask" from netcdf file into "wetMask"
732726
733- call check_ret(nf90_inq_varid(ncid," mask" ,varid),subname)
734- call check_ret(nf90_get_var(ncid,varid,wetMask),subname)
735- call check_ret(nf90_close(ncid),subname)
727+ call check_ret( nf90_inq_varid(ncid," mask" ,varid), subname)
728+ call check_ret( nf90_get_var( ncid,varid,wetMask), subname)
729+ call check_ret( nf90_close( ncid), subname)
736730
737731 end subroutine read_oceanModel_mapl
738732
0 commit comments