Skip to content

Commit

Permalink
Return if CS is not associated
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Apr 19, 2018
1 parent 65527d6 commit e90fbe9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parameterizations/vertical/MOM_tidal_mixing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,8 @@ end subroutine read_tidal_energy
subroutine tidal_mixing_end(CS)
type(tidal_mixing_cs), pointer :: CS ! This module's control structure

if (.not.associated(CS)) return

!TODO deallocate all the dynamically allocated members here ...
if (allocated(CS%tidal_qe_2d)) deallocate(CS%tidal_qe_2d)
deallocate(CS%dd)
Expand Down

0 comments on commit e90fbe9

Please sign in to comment.