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

Fix a bug in VBS SOA gas-aerosol partition calculation #6502

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

@mingxuanwupnnl mingxuanwupnnl added Atmosphere bug fix PR non-BFB PR makes roundoff changes to answers. labels Jul 7, 2024
Copy link

github-actions bot commented Jul 7, 2024

PR Preview Action v1.4.7
🚀 Deployed preview to https://E3SM-Project.github.io/E3SM/pr-preview/pr-6502/
on branch gh-pages at 2024-07-07 18:53 UTC

@mingxuanwupnnl mingxuanwupnnl linked an issue Jul 7, 2024 that may be closed by this pull request
@rljacob rljacob added this to the v3.1beta milestone Jul 7, 2024
@mingxuanwupnnl mingxuanwupnnl changed the title Fix a bug in Bug in VBS SOA gas-aerosol partition calculation Fix a bug in VBS SOA gas-aerosol partition calculation Jul 8, 2024
Copy link

@mkshriva mkshriva left a comment

Choose a reason for hiding this comment

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

Sounds good. As expected, the bug has minimal impact. I agree it should use 298 K instead of temp on line 3533

@rljacob
Copy link
Member

rljacob commented Oct 29, 2024

@wlin7 is this ready to go? Could go on next today.

wlin7 added a commit that referenced this pull request Oct 29, 2024
Fix a bug in VBS SOA gas-aerosol partition calculation

In subroutine mam_soaexch_vbs_1subarea in
components/eam/src/chemistry/modal_aero/modal_aero_amicphys.F90

The calculation of p0_soa_298 is not correct. Temperature of 298 K
should be used instead of ambient temperature

This fix has very small impact on global mean climate.

Fixes #6474.

[non-BFB] All tests with active E3SMv3 atm configurations
          that enable vbs soa are affected.

* origin/mingxuanwupnnl/atm/VBSfix:
  fix VBS bug in soa partition subroutine
@wlin7
Copy link
Contributor

wlin7 commented Oct 29, 2024

Merged to next. The fix is straightforward; it will impact all configs that use vbs soa (standard v3atm).

@wlin7 wlin7 merged commit 2f11da4 into master Oct 30, 2024
21 checks passed
@wlin7 wlin7 deleted the mingxuanwupnnl/atm/VBSfix branch October 30, 2024 12:11
@rljacob
Copy link
Member

rljacob commented Oct 31, 2024

@rljacob
Copy link
Member

rljacob commented Oct 31, 2024

@mingxuanwupnnl would you expect this to be climate changing? TSC tests indicate it is.

@mingxuanwupnnl
Copy link
Contributor Author

@mingxuanwupnnl would you expect this to be climate changing? TSC tests indicate it is.

I don't think this bug fix will change the climate significantly. Not sure if I understand the test correctly. Does it mean that only soa_a1_SRF and num_a1 are climate changing?

@wlin7
Copy link
Contributor

wlin7 commented Oct 31, 2024

This may not be an indication of climate changing. The test is for time step convergence, with a very small time step size (2 seconds) for an ne4pg2 grid. num_a1 is deemed non-convergent during much of the 10-minute simulation but not always . NUMLIQ was also detected but only for the 1st step. Look like the nonconvergence in num_a1 does not propagate to other fields.

Is it possible that the value of num_a1 in the reference run is small in magnitude, and the relative fluctuation is more sensitive to the changes introduced by the fix?

@rljacob
Copy link
Member

rljacob commented Oct 31, 2024

The MVK test passed last night so it must be on the borderline. But TSC is still indicating a fail.

@rljacob
Copy link
Member

rljacob commented Nov 4, 2024

TSC is consistently diffing from this PR. @wlin7 please make a bless request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Atmosphere bug fix PR non-BFB PR makes roundoff changes to answers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in VBS SOA calculation
5 participants