Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hard-coded taper in lStokesMOST #100

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

gustavo-marques
Copy link
Contributor

Eliminated the taper applied between 100-300 m in lStokesMOST. This taper is no longer necessary with the introduction of a variable MLE length scale.

Eliminated the taper applied between 100-300 m in lStokesMOST.
This taper is no longer necessary with the introduction of
a variable MLE length scale.
@gustavo-marques
Copy link
Contributor Author

Solves ESCOMP/MOM_interface#217

xbeta = xbeta / (300._cvmix_r8-100._cvmix_r8)
ybeta = (cvmix_one - xbeta*xbeta)**2
beta = ybeta * 0.2_cvmix_r8
beta = 0.2_cvmix_r8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You set beta=0.2_cvmix_r8 here, and the following line uses it (Vtc = sqrt( beta *3.8409_cvmix_r8 /ws_wstar) /CVmix_kpp_params_in%Ri_crit), but elsewhere in the code you rely on a hard-coded 0.2. E.g. lines 2708 - 2711:

        ! From LMD 94, Vtc = sqrt(-beta_T/(c_s*eps))/kappa^2
        Vtc = sqrt(0.2_cvmix_r8/(cvmix_get_kpp_real('c_s', CVmix_kpp_params_in) * &
              cvmix_get_kpp_real('surf_layer_ext', CVmix_kpp_params_in))) / &
              (cvmix_get_kpp_real('vonkarman', CVmix_kpp_params_in)**2)

2769-2772

          ! From LMD 94, Vtc = sqrt(-beta_T/(c_s*eps))/kappa^2
          Vtc = sqrt(0.2_cvmix_r8/(cvmix_get_kpp_real('c_s', CVmix_kpp_params_in) * &
                cvmix_get_kpp_real('surf_layer_ext', CVmix_kpp_params_in))) / &
                (cvmix_get_kpp_real('vonkarman', CVmix_kpp_params_in)**2)

and a couple other places where beta shows up in the comment but 0.2 is used in the code. We should either remove the beta variable, or use it in all 5 places the comments indicate it belongs

@mnlevy1981 mnlevy1981 merged commit 99317c1 into CVMix:master Jan 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants