forked from CICE-Consortium/CICE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ice_dyn_shared: add optional CD-grid arguments to 'seabed_stress_fact…
…or_prob' In contrast to 'seabed_stress_factor_LKD', in 'seabed_stress_factor_prob' the seabed stress factor is computed at the T location and only transfered to the U location at the end of the subroutine. So for efficiency it does not make sense to call that subroutine twice for computing the factor at the E and N locations. Instead, add optional arguments for 'TbE' and 'TbN', as well as the corresponding indices paraphernalia, and compute the factor at the E and N location at the end of the subroutine depending on 'grid_system' and the presence of the optional arguments. Use 'grid_neighbor_max' to abstract away the operation of finding the maximum value of neighboring cells.
- Loading branch information
1 parent
fb4d6ad
commit 7c70258
Showing
1 changed file
with
52 additions
and
9 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