Skip to content

Commit

Permalink
Don't pass Schmittner when using Simmons
Browse files Browse the repository at this point in the history
cvmix_coeffs_tidal_wrap() was passing cvmix_vars%SchmittnerSouthernOcean to
cvmix_coeffs_tidal_low() even when user specified Simmons scheme, and this was
causing memory issues (I don't think the driver ever allocated that memory)
  • Loading branch information
mnlevy1981 committed Aug 15, 2024
1 parent 6e51516 commit 71d339b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/shared/cvmix_tidal.F90
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,7 @@ subroutine cvmix_coeffs_tidal_wrap(CVmix_vars, &
CVmix_vars%SimmonsCoeff, &
CVmix_vars%VertDep_iface, nlev, max_nlev, &
CVMix_params, &
CVmix_vars%SchmittnerSouthernOcean, &
CVmix_tidal_params_user)
CVMix_tidal_params_user=CVmix_tidal_params_user)
case ('schmittner','Schmittner')
call cvmix_coeffs_tidal_schmittner &
(new_Mdiff, new_Tdiff, &
Expand Down

0 comments on commit 71d339b

Please sign in to comment.