Skip to content

Commit

Permalink
Avoided a possible seg. fault in set_diffusivity_end
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Apr 4, 2018
1 parent 36f7a06 commit 4dde603
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parameterizations/vertical/MOM_set_diffusivity.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2957,6 +2957,8 @@ end subroutine set_diffusivity_init
subroutine set_diffusivity_end(CS)
type(set_diffusivity_CS), pointer :: CS !< Control structure for this module

if (.not.associated(CS)) return

call bkgnd_mixing_end(CS%bkgnd_mixing_csp)

if (CS%user_change_diff) &
Expand Down

0 comments on commit 4dde603

Please sign in to comment.