forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor re-factor of horizontal_viscosity()
- Moved setting of (constant) mod_Leith to outside of loops - Moved calculation of div_xx to after calculation of h_u,h_v - Used h_u,h_v in div_xx (avoids repeated computations) - Put calculation of div_xx, vort_xy into a conditional block - Aligned comments with code
- Loading branch information
Showing
1 changed file
with
60 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters