Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This MR fixes two issues with dissipation heating that arise in the following cases:
1- diss_est in the whole domain when do_vort_damp=.F.: damp_v will not allow a correct computation of local arrays ut, vt computed by del6_vt_flux and needed for the calculation of diss_est
2- diss_est in the sponge layers when do_vort_damp=.T.: d_con_k=0 in the sponge layers (set just before calling d_sw for k=1,2,3), this will not allow a correct computation of ub, vb since there is one condition (d_con > 1.e-5). ub, vb are used later to compute diss_est
This code change will fix ub, vb, ut, vt needed for the calculation of dissipative heating diss_est
Fixes #294
How Has This Been Tested?
Idealized tests on Gaea
Checklist:
Please check all whether they apply or not