Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major bug fix for tendencies from NSAS cumulus scheme #71

Merged
merged 1 commit into from
Dec 16, 2016
Merged

Major bug fix for tendencies from NSAS cumulus scheme #71

merged 1 commit into from
Dec 16, 2016

Conversation

weiwangncar
Copy link
Collaborator

@weiwangncar weiwangncar commented Dec 15, 2016

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.

…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.
Copy link
Contributor

@mkavulich mkavulich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by WRF-dev committee.

@weiwangncar weiwangncar merged commit 8e09279 into wrf-model:master Dec 16, 2016
@weiwangncar weiwangncar deleted the nsas-fix branch March 21, 2018 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants