Skip to content

Commit

Permalink
Return call if CS is not allocated
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Apr 18, 2018
1 parent dabe31b commit dc82c48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parameterizations/vertical/MOM_KPP.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,10 @@ end subroutine KPP_NonLocalTransport_saln
subroutine KPP_end(CS)
type(KPP_CS), pointer :: CS !< Control structure

if (.not.associated(CS)) return

deallocate(CS)

end subroutine KPP_end

!> \namespace mom_kpp
Expand Down

0 comments on commit dc82c48

Please sign in to comment.