Skip to content

Commit

Permalink
Change diversion fortran ext
Browse files Browse the repository at this point in the history
  • Loading branch information
rcabell committed Jan 5, 2025
1 parent 8050487 commit 4896659
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/HYDRO_drv/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# build the version static library
add_library(hydro_driver STATIC
module_HYDRO_drv.F90
module_HYDRO_drv.F90
)

target_link_libraries(hydro_driver PUBLIC
Expand Down
6 changes: 6 additions & 0 deletions src/HYDRO_drv/module_HYDRO_drv.F90
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module module_HYDRO_drv
#endif
use module_hydro_stop, only: HYDRO_stop
use module_UDMAP, only: get_basn_area_nhd
use module_channel_diversions, only: init_diversions
use netcdf

implicit none
Expand Down Expand Up @@ -1583,6 +1584,11 @@ subroutine HYDRO_ini(ntime, did,ix0,jx0, vegtyp,soltyp)
if(nlst(did)%CHANRTSWCRT .ne. 0) call init_stream_nudging
#endif

!#ifdef WRF_HYDRO_DIVERSIONS
! TODO: should this check to make sure we have nudging on too? [RC]
call init_diversions(nlst(did)%diversions_file, nlst(did)%timeSlicePath)
!#endif


! if (trim(nlst_rt(did)%restart_file) == "") then
! output at the initial time
Expand Down
4 changes: 2 additions & 2 deletions src/Routing/Diversions/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
add_library(hydro_routing_diversions STATIC
module_diversions.F
module_diversions_timeslice.F
module_diversions.F90
module_diversions_timeslice.F90
)

add_dependencies(hydro_routing_diversions hydro_orchestrator)
Expand Down
File renamed without changes.

0 comments on commit 4896659

Please sign in to comment.