Skip to content

Commit

Permalink
Commenting out deallocation of KPP related arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Apr 18, 2018
1 parent dc82c48 commit dde5a59
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/parameterizations/vertical/MOM_diabatic_driver.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2424,16 +2424,19 @@ subroutine diabatic_driver_end(CS)

call entrain_diffusive_end(CS%entrain_diffusive_CSp)
call set_diffusivity_end(CS%set_diff_CSp)
if (CS%useKPP) then
if (allocated(CS%KPP_buoy_flux)) deallocate( CS%KPP_buoy_flux )
if (allocated(CS%KPP_temp_flux)) deallocate( CS%KPP_temp_flux )
if (allocated(CS%KPP_salt_flux)) deallocate( CS%KPP_salt_flux )
endif
if (CS%useKPP) then
if (allocated(CS%KPP_NLTheat)) deallocate( CS%KPP_NLTheat )
if (allocated(CS%KPP_NLTscalar)) deallocate( CS%KPP_NLTscalar )
call KPP_end(CS%KPP_CSp)
endif

! GMM, commeting the following because it fails on Travis (gfortran)

! if (CS%useKPP) then
! if (allocated(CS%KPP_buoy_flux)) deallocate( CS%KPP_buoy_flux )
! if (allocated(CS%KPP_temp_flux)) deallocate( CS%KPP_temp_flux )
! if (allocated(CS%KPP_salt_flux)) deallocate( CS%KPP_salt_flux )
! endif
! if (CS%useKPP) then
! if (allocated(CS%KPP_NLTheat)) deallocate( CS%KPP_NLTheat )
! if (allocated(CS%KPP_NLTscalar)) deallocate( CS%KPP_NLTscalar )
! call KPP_end(CS%KPP_CSp)
! endif

if (CS%use_tidal_mixing) call tidal_mixing_end(CS%tidal_mixing_CSp)

Expand Down

0 comments on commit dde5a59

Please sign in to comment.