Skip to content

Commit

Permalink
initialize drydep_nflds to zero
Browse files Browse the repository at this point in the history
        modified:   cesm/nuopc_cap_share/shr_drydep_mod.F90
  • Loading branch information
fvitt committed May 31, 2022
1 parent f557497 commit b7b2cff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cesm/nuopc_cap_share/shr_drydep_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ subroutine shr_drydep_readnl(NLFilename, drydep_nflds)
call shr_mpi_bcast( drydep_list, mpicom )
call shr_mpi_bcast( dep_data_file, mpicom )

drydep_nflds = 0

do i=1,maxspc
if(len_trim(drydep_list(i)) > 0) then
drydep_nflds=drydep_nflds+1
Expand Down

0 comments on commit b7b2cff

Please sign in to comment.