Skip to content

Commit

Permalink
Update aed_noncohesive.F90
Browse files Browse the repository at this point in the history
Prevent seg fault on id_ss checking if not allocated, by looping through num_ss instead
(related to pull request #4 from rqthomas)
  • Loading branch information
matthipsey committed Jan 25, 2022
1 parent 8febd3c commit 64f934b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aed_noncohesive.F90
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ SUBROUTINE aed_light_extinction_noncohesive(data,column,layer_idx,extinction)
!
!-----------------------------------------------------------------------
!BEGIN
DO ss_i=1,ubound(data%id_ss,1)
!DO ss_i=1,ubound(data%id_ss,1)
DO ss_i=1,data%num_ss
! Retrieve current (local) state variable values.
ss = _STATE_VAR_(data%id_ss(ss_i))

Expand Down

0 comments on commit 64f934b

Please sign in to comment.