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

Read ZSOIL8 from HYDRO_nlist if sys_cpl ne 1 #578

Draft
wants to merge 1 commit into
base: v5.2.x
Choose a base branch
from
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
11 changes: 7 additions & 4 deletions trunk/NDHMS/OrchestratorLayer/config.f90
Original file line number Diff line number Diff line change
Expand Up @@ -632,10 +632,13 @@ subroutine init_namelist_rt_field(did)

if(CHANRTSWCRT .eq. 0 .and. channel_option .lt. 3) channel_option = 3

!used to be broadcasted with MPI
!nlst(did)%NSOIL = NSOIL
!allocate(nlst(did)%ZSOIL8(NSOIL))
!nlst(did)%ZSOIL8 = ZSOIL8
! sys_cpl .eq. 1 reads soil_thick_input from NOAHLSM_OFFLINE
if(sys_cpl .ne. 1) then
nlst(did)%NSOIL = NSOIL
if (allocated(nlst(did)%ZSOIL8)) deallocate(nlst(did)%ZSOIL8)
allocate(nlst(did)%ZSOIL8(NSOIL))
nlst(did)%ZSOIL8 = ZSOIL8
end if

nlst(did)%RESTART_FILE = RESTART_FILE
nlst(did)%hydrotbl_f = trim(hydrotbl_f)
Expand Down