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.
Refactored construction of Laplacian viscosity
- The logic for constructing viscosity involved nested if's and alternate pathways. - This refactor avoids large pathway branches and has not nested if's, thereby simplifying the logic: - The only case where extra steps occur are when Smagorinsky and Leith are both disabled and better_bound is enabled. In this case more conditionals are encountered sequentially. - Added comments to: - indicate contributions that are resolution scaled or not; - indicate contributions that are additive rather than maxed.
- Loading branch information
Showing
1 changed file
with
20 additions
and
33 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