Add missing "IF km_opt==5" tests for diag computations#1013
Merged
davegill merged 1 commit intowrf-model:developfrom Nov 18, 2019
Merged
Add missing "IF km_opt==5" tests for diag computations#1013davegill merged 1 commit intowrf-model:developfrom
davegill merged 1 commit intowrf-model:developfrom
Conversation
TYPE: choose one of [bug fix, enhancement, new feature, feature removed, no impact, text only] KEYWORDS: 5 to 10 words related to commit, separated by commas SOURCE: Either "developer's name (affiliation)" .XOR. "internal" for a WRF Dev committee member 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). 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.
Collaborator
|
Were arrays only allocated for km_opt=5 via packages used? If so,
that could be added to the description. Or else what was the nature of the
failure?
…On Thu, Nov 14, 2019 at 7:38 PM Dave Gill ***@***.***> wrote:
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).
LIST OF MODIFIED FILES:
modified: dyn_em/module_diffusion_em.F
TESTS CONDUCTED:
- Without mods, there are attempts to compute km_opt==5 diags when
km_opt==2.
- With mods, no attempts to compute km_opt==5 diags when km_opt==2.
------------------------------
You can view, comment on, or merge this pull request online at:
#1013
Commit Summary
- Add missing "IF km_opt==5" tests for diag computations
File Changes
- *M* dyn_em/module_diffusion_em.F
<https://github.com/wrf-model/WRF/pull/1013/files#diff-0> (12)
Patch Links:
- https://github.com/wrf-model/WRF/pull/1013.patch
- https://github.com/wrf-model/WRF/pull/1013.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1013?email_source=notifications&email_token=AEIZ77BVTY57ZFPF5HI2G5DQTYDRNA5CNFSM4JNUUJI2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZPVUCQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIZ77AXIS7LLVK3YX2OEF3QTYDRNANCNFSM4JNUUJIQ>
.
|
Contributor
Author
|
@dudhia @smileMchen @weiwangncar @janmandel The only solution for a working develop branch is to unpackage everything that is new for the sms3dtke option (more than a dozen new arrays) and keep that memory and those fields allocated. The original developer needs to address this problem. |
Collaborator
|
OK, so it possibly means that there are areas in the code that have not
been found yet
that use these packaged arrays when the scheme is off. Thanks for taking
the time on this.
…On Fri, Nov 15, 2019 at 11:29 AM Dave Gill ***@***.***> wrote:
@dudhia <https://github.com/dudhia> @smileMchen
<https://github.com/smileMchen> @weiwangncar
<https://github.com/weiwangncar> @janmandel <https://github.com/janmandel>
Jimy,
With the top of the repository on the develop branch, every ideal ideal
job will fail that uses km_opt=2. I started removing individual variables
in the Registry.EM_COMMON file package for sms3dtke, to see if I could find
"the one" problematic variable. When that was not successful, I tried
looking through the code to see if there were obvious missing IF tests.
Both of these activities became too much of a time drain.
The only solution for a working develop branch is to unpackage everything
that is new for the sms3dtke option (more than a dozen new arrays) and keep
that memory and those fields allocated. The original developer needs to
address this problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1013?email_source=notifications&email_token=AEIZ77AC6IPUGXNBA2RWHETQT3S7NA5CNFSM4JNUUJI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEGJ7GQ#issuecomment-554475418>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIZ77GMTWHDRPFGHZADCZTQT3S7NANCNFSM4JNUUJIQ>
.
|
Collaborator
|
@davegill This makes sense too. |
weiwangncar
approved these changes
Nov 15, 2019
Collaborator
|
Does this fix the previous issue?
On Thursday, November 14, 2019, 07:38:17 PM MST, Dave Gill <notifications@github.com> wrote:
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).
LIST OF MODIFIED FILES:
modified: dyn_em/module_diffusion_em.F
TESTS CONDUCTED:
- Without mods, there are attempts to compute km_opt==5 diags when km_opt==2.
- With mods, no attempts to compute km_opt==5 diags when km_opt==2.
You can view, comment on, or merge this pull request online at:
#1013
Commit Summary
- Add missing "IF km_opt==5" tests for diag computations
File Changes
- M dyn_em/module_diffusion_em.F (12)
Patch Links:
- https://github.com/wrf-model/WRF/pull/1013.patch
- https://github.com/wrf-model/WRF/pull/1013.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
liujake
added a commit
that referenced
this pull request
Feb 12, 2020
TYPE: bug fix KEYWORDS: wrfplus, TL/AD code SOURCE: internal DESCRIPTION OF CHANGES: Two recent WRF model code changes break the wrfplus compilation: 1. ESMF name change This modification allowed the CTSM development to use standard ESMF without conflicting with WRF _old_ ESMF library namespace. Commit 8af5385, PR #1066 "Enabling WRF build with ESMF library" 2. module_diffusion_em_ad.F, 3d scale aware TKE (one of these, take your pick) Commit d059afe, PR #972 "Add a scale-adaptive 3DTKE parameterization scheme as a subgrid mixing option Commit 6d95883, PR #1012 "SMS3dTKE: Remove broken packaging for km_opt=5" Commit 94e5ed9, PR #1013 "Add missing "IF km_opt==5" tests for diag computations" Commit dd0c209, PR #1026 "Fixing the problem that km_opt=5 breaks km_opt=2 and cleaning codes" LIST OF MODIFIED FILES: M share/mediation_integrate.F M wrftladj/module_diffusion_em_ad.F TESTS CONDUCTED: wrfplus code compiles now.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: