Commit 94e5ed9
authored
Add missing "IF km_opt==5" tests for diag computations (#1013)
TYPE: bug fix
KEYWORDS: sms3dtke, km_opt==5
SOURCE: Internal
DESCRIPTION OF CHANGES:
Each location where the optional diagnostics for km_opt==5 are computed,
instead of only using a local IF test, now a combination of the same local
IF test (T/F do the computation) is used in conjunction with and a test
for if the diagnostic is permitted (is km_opt==5).
The km_opt==5 scheme originally had (and hopefully, will eventually again have)
specified arrays via the package capability in the Registry. Those fields need to be
protected from accidental use when km_opt==2.
LIST OF MODIFIED FILES:
modified: dyn_em/module_diffusion_em.F
TESTS CONDUCTED:
- [x] Without mods, there are attempts to compute km_opt==5 diags when km_opt==2.
- [x] With mods, no attempts to compute km_opt==5 diags when km_opt==2.1 parent 6d95883 commit 94e5ed9
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3344 | 3344 | | |
3345 | 3345 | | |
3346 | 3346 | | |
3347 | | - | |
| 3347 | + | |
3348 | 3348 | | |
3349 | 3349 | | |
3350 | 3350 | | |
| |||
3564 | 3564 | | |
3565 | 3565 | | |
3566 | 3566 | | |
3567 | | - | |
| 3567 | + | |
3568 | 3568 | | |
3569 | 3569 | | |
3570 | 3570 | | |
| |||
3783 | 3783 | | |
3784 | 3784 | | |
3785 | 3785 | | |
3786 | | - | |
| 3786 | + | |
3787 | 3787 | | |
3788 | 3788 | | |
3789 | 3789 | | |
| |||
3885 | 3885 | | |
3886 | 3886 | | |
3887 | 3887 | | |
3888 | | - | |
| 3888 | + | |
3889 | 3889 | | |
3890 | 3890 | | |
3891 | 3891 | | |
| |||
4092 | 4092 | | |
4093 | 4093 | | |
4094 | 4094 | | |
4095 | | - | |
| 4095 | + | |
4096 | 4096 | | |
4097 | 4097 | | |
4098 | 4098 | | |
| |||
4124 | 4124 | | |
4125 | 4125 | | |
4126 | 4126 | | |
4127 | | - | |
| 4127 | + | |
4128 | 4128 | | |
4129 | 4129 | | |
4130 | 4130 | | |
| |||
0 commit comments