Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow turning lakes off (lake_option = 0) for Gridded #803

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
7 changes: 6 additions & 1 deletion src/Routing/module_RT.F90
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ subroutine getChanDim(did)

return

endif
endif


allocate(CH_NETLNK(ixrt,jxrt))
Expand All @@ -589,6 +589,11 @@ subroutine getChanDim(did)
call get_NLINKSL(rt_domain(did)%NLINKSL, nlst(did)%channel_option, nlst(did)%route_link_f)
#endif

if (nlst(did)%lake_option == 0) then
write(6,*) "Lakes have been disabled -- NLAKES will be set to zero."
rt_domain(did)%nlakes = 0
end if

#ifdef HYDRO_D
write(6,*) "before rt_allocate after READ_ROUTEDIM"
#endif
Expand Down
Loading