Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(*)Fixes implementation of minimum viscosity
- The minimum viscsoity was only being applied in the strain component. The minimum with KH_BG_MIN was not applied to the tension component. This broke isotropy of the stress tensor. - The parameter KH_BG_MIN defaults to 0.0 which would be harmless if viscosities are always non-negative. However, when using backscatter the viscosity is intentionally negative and this limiter was zeroing out the backscatter, but only in the strain component. - I've moved the min() function to before adding in the MEKE component which is where negative viscosities might come from. - This does not change answers in any tests BUT will change answers for any backscatter experiments OR where KH_BG_MIN is non-zero.
- Loading branch information