Major bug fix for tendencies from NSAS cumulus scheme#71
Merged
weiwangncar merged 1 commit intowrf-model:masterfrom Dec 16, 2016
weiwangncar:nsas-fix
Merged
Major bug fix for tendencies from NSAS cumulus scheme#71weiwangncar merged 1 commit intowrf-model:masterfrom weiwangncar:nsas-fix
weiwangncar merged 1 commit intowrf-model:masterfrom
weiwangncar:nsas-fix
Conversation
…n variables) are wrong as they are divided by dt*stepcu instead of dt. nsas2d and nscv2d are called with dt. As the tendency terms are kept constant during stepcu time steps, they should not be divided by dt*stepcu but by dt. stepcu is defined in phys/module_physics_init.F by: STEPCU = nint(CUDT*60./DT) STEPCU = max(STEPCU,1) The user verified this by playing with time_step and cudt. Any reasonable value of time_step and cudt gives very similar results as soon as stepcu = 1, but results drastically change when stepcu = 2 or higher values.
mkavulich
approved these changes
Dec 16, 2016
Contributor
mkavulich
left a comment
There was a problem hiding this comment.
Approved by WRF-dev committee.
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: NSAS cumulus scheme, tendencies
SOURCE: Sebastien Masson, LOCEAN - IPSL, Univ. Pierre et Marie Curie, France
DESCRIPTION OF CHANGES:
In module_cu_nsas.F, all cumulus tendency terms (*cuten variables) are wrong as they are divided by dt*stepcu (where stepcu is the number of time steps in CUDT) instead of dt while the deep (nsas2d) and shallow (nscv2d) routines are called with dt. As tendency terms are kept constant during stepcu time steps, they should not be divided by dt*stepcu but by dt.
LIST OF MODIFIED FILES:
phys/module_cu_nsas.F
TESTS CONDUCTED: reg tested. Ran January case, new changes provide more heating and less rainfall. The user verified this by playing with time_step and cudt. Any reasonable value of time_step and cudt gives very similar results when stepcu = 1, but results drastically change when stepcu = 2 or higher values.