Corrected bug in mixactivate for diagnostic CCN in sectional schemes#1359
Conversation
which did not allow for particle growth in the computation of volume-mean diameters, found by Calvin Howes. Fix proposed by Richard Easter. 09/25/2020.
phys/module_mixactivate.F
Outdated
| lmass=massptr_aer(l,m,n,ai_phase) | ||
| lmasscw=massptr_aer(l,m,n,cw_phase) | ||
| ! scale = mwdry/mw_aer(l,n) | ||
| ! scale = mwdry/mw_aer(l,n) |
There was a problem hiding this comment.
Just remove this commented out line completely.
There was a problem hiding this comment.
Should be taken care of.
|
@jordanschnell |
|
@brigaudet There are three other combinations of physics that also use aer_opt=2, aer_aod550_opt=1, aer_angexp_opt=1, aer_ssa_opt=1, aer_asy_opt=1, and aer_type=1. Usually an MPI diff is related to a missing communcation or an incorrect assignment (maybe in an initialization). |
|
@brigaudet |
The intent was the fix would only impact chemistry (and only in a diagnostic way at that). But the relevant code is in the phys directory and some side effects with say the aer variables. Will need to take a closer look. |
|
@brigaudet |
|
@brigaudet Instead of me doing it, would you please edit the PR commit message on github and manually force a carriage return. This will avoid long lines when people look at the git logs on their desktop machines. I did the "Problem" section as an example. By convention, do NOT wrap the RELEASE NOTES part, as we cut and paste that directly into a bigger release message. |
To re-iterate - no need to take a closer look. |
|
@jordanschnell |
|
Add something about which options are affected in the PR message and release note. |
…rf-model#1359) TYPE: bug fix KEYWORDS: chemistry, sectional, CCN, mixactivate SOURCE: Calvin Howes (UCLA), Richard Easter (PNNL), internal DESCRIPTION OF CHANGES: Problem: The sectional scheme diagnostic CCN1, CCN2, ... CCN6 output as computed in mixactivate did not allow for particle growth in the computation of volume-mean diameters. This bug was initially found by Calvin Howes, with the current fix proposed by Richard Easter 09/25/2020. The CCN output fields being diagnostic do not impact actual aerosol activation, so cloud properties are not impacted by the bug. Solution: Subroutine mixactivate in module_mixactivate.F was modified to use actual time-dependent sizes rather than the default values in computing critical supersaturations and hence CCN. LIST OF MODIFIED FILES: M phys/module_mixactivate.F TESTS CONDUCTED: 1. The first set of attached figures shows CCN6 (CCN at > 1% SS) in the WRF restart files for the lowest model level in a simulation of the Amazon using chem_opt = 11 (RADM2SORG_AQ). The number of CCN is reduced in areas of cloud formation, suggesting wet removal. But this preferentially impacts the larger / activated Aitken mode particles, reducing the particle size from the default size. Thus with the bug fix the diagnosed CCN is reduced relative to the standard code, while the cloud condensate mixing ratio (QCLOUD) is unchanged (second set of slides). [CCN_bug_fix_test_4.2.2.pptx](https://github.com/wrf-model/WRF/files/5784455/CCN_bug_fix_test_4.2.2.pptx) 2. Jenkins testing is all pass. RELEASE NOTE: Corrected bug in mixactivate for diagnostic CCN in sectional schemes. Impacts Morrison and Lin et al. microphysics schemes.
TYPE: bug fix
KEYWORDS: chemistry, sectional, CCN, mixactivate
SOURCE: Calvin Howes (UCLA), Richard Easter (PNNL), internal
DESCRIPTION OF CHANGES:
Problem:
The sectional scheme diagnostic CCN1, CCN2, ... CCN6 output as computed in mixactivate did not allow for particle
growth in the computation of volume-mean diameters. This bug was initially found by Calvin Howes, with the current
fix proposed by Richard Easter 09/25/2020. The CCN output fields being diagnostic do not impact actual aerosol
activation, so cloud properties are not impacted by the bug.
Solution:
Subroutine mixactivate in module_mixactivate.F was modified to use actual time-dependent sizes rather than the default values in computing critical supersaturations and hence CCN.
LIST OF MODIFIED FILES:
M phys/module_mixactivate.F
TESTS CONDUCTED:
CCN_bug_fix_test_4.2.2.pptx
RELEASE NOTE: Corrected bug in mixactivate for diagnostic CCN in sectional schemes. Impacts Morrison and Lin et al. microphysics schemes.