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

BUG FIX: chem_opt = 201, 202 ph_diag #1813

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

jordanschnell
Copy link
Contributor

@jordanschnell jordanschnell commented Jan 27, 2023

Fixed a bug for chem_opt = 201, 202.

TYPE: bug fix

KEYWORDS: MOZART_MOSAIC_4BIN, mozart_pH_diag, bug fix

SOURCE: Internal

DESCRIPTION OF CHANGES:
Problem:
Users will experience a stalled simulation upon writing history files. This was caused by the pH diagnostics added in v4.3 (#1342) not being activated with the namelist option mozart_ph_diag = 1.

Solution:
Add as optional arguments only filled if the namelist is activated.

LIST OF MODIFIED FILES: list of changed files (use git diff --name-status master to get formatted list)
M chem/aerosol_driver.F
M chem/cloudchem_driver.F
M chem/module_mosaic_cloudchem.F
M chem/module_mosaic_driver.F
M chem/module_mosaic_therm.F

TESTS CONDUCTED:

  1. Yes, the fix remedies the problem.
  2. The Jenkins tests have passed.

RELEASE NOTE: This PR addresses a bug introduced in WRF v4.3 that affects users using chem_opts = 201 (MOZART_MOSAIC_4BIN_KPP) and 202 (MOZART_MOSAIC_4BIN_AQ_KPP).

…chem_opts = 201 (MOZART_MOSAIC_4BIN_KPP) and 202 (MOZART_MOSAIC_4BIN_AQ_KPP).

Users will experience a stalled simulation upon writing history files. This was caused by the pH diagnostics added in v4.3 not being activated with the namelist option mozart_ph_diag = 1.
To remedy, the packaged arrays are only initialized and filled if this option is set.
@weiwangncar
Copy link
Collaborator

The Jenkins test results:

Test Type              | Expected  | Received |  Failed
= = = = = = = = = = = = = = = = = = = = = = = =  = = = =
Number of Tests        : 23           24
Number of Builds       : 60           57
Number of Simulations  : 158           150        0
Number of Comparisons  : 95           86        0

Failed Simulations are: 
None
Which comparisons are not bit-for-bit: 
None

@weiwangncar
Copy link
Collaborator

@jordanschnell Let me know if the change to the PR message looks ok to you.

@jordanschnell
Copy link
Contributor Author

@jordanschnell Let me know if the change to the PR message looks ok to you.

Yes, fine with me thanks.

@weiwangncar weiwangncar merged commit 3e447db into wrf-model:develop Jan 31, 2023
vlakshmanan-scala pushed a commit to scala-computing/WRF that referenced this pull request Apr 4, 2024
…RT_MOSAIC_4BIN_KPP) and 202 (MOZART_MOSAIC_4BIN_AQ_KPP). (wrf-model#1813)

Fixed a bug for chem_opt = 201, 202.

TYPE: bug fix

KEYWORDS: MOZART_MOSAIC_4BIN, mozart_pH_diag, bug fix

SOURCE: Internal

DESCRIPTION OF CHANGES:
Problem:
Users will experience a stalled simulation upon writing history files. This was caused by the pH diagnostics added in v4.3 (wrf-model#1342) not being activated with the namelist option mozart_ph_diag = 1.

Solution:
Add as optional arguments only filled if the namelist is activated.

LIST OF MODIFIED FILES: list of changed files (use git diff --name-status master to get formatted list)
M chem/aerosol_driver.F
M chem/cloudchem_driver.F
M chem/module_mosaic_cloudchem.F
M chem/module_mosaic_driver.F
M chem/module_mosaic_therm.F

TESTS CONDUCTED:

Yes, the fix remedies the problem.
The Jenkins tests have passed.
RELEASE NOTE: This PR addresses a bug introduced in WRF v4.3 that affects users using chem_opts = 201 (MOZART_MOSAIC_4BIN_KPP) and 202 (MOZART_MOSAIC_4BIN_AQ_KPP).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants