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

Isam update 21april2023 #186

Merged
merged 6 commits into from
Apr 28, 2023
Merged

Isam update 21april2023 #186

merged 6 commits into from
Apr 28, 2023

Conversation

sergeynk
Copy link
Contributor

Contact:
[Sergey Napelenok], U.S. Environmental Protection Agency

Type of code change:
Bug fix

Description of changes:
This fixes several recently identified ISAM issues including:

ISAM is crashing when compiled in debug mode and PM_TOT tagclass is activated. Some logic was added to SA_WRAP_AE to limit calculations when JAEM array contains zero indexes.

AORGCJ is not calculated correctly. AORGCJ is tracked when 'ALL' tagclass is invoked, however, no calculations for this species were added to aqchem. Similarly MGLY is missing from ISAM gas species, but it is a precursor to AORGCJ.

ISAM crashes in debug mode with the 'TAG CLASSES |ALL' configuration.

Ground level PROD/LOSS calculation is incorrect in layer 1.

Summary of Impact:
Should have no impact on CMAQ concentrations. ISAM output now performs calculations as directed when in PM_TOT tagclass mode and more correctly calculates attribution of AORGCJ and both standard and debug compilations. The necessary addition of MGLY to the ISAM species lists may slightly impact ozone chemistry apportionment in some ISAM applications.

Tests conducted:
This PR passes the following build and run checks:

Compilers: Intel, GNU, Portland Group
Compile Mode: Optimized, Debug
Model Scenario: 2016 Southeast U.S. Benchmark
Tests conducted have been on the 2018 benchmark domain and fortran compiler in debug mode. More extensive evaluation was performed for hemispheric EQUATES ISAM application comparing based release version and this update.

Here is a spatial comparison of differences in tags for ATOTIJ and AORGCJ for the new and old code. This shows that the updated code does not always produce higher tag contributions (except for AORGCJ), indicating that the changes to the vdiff code can impact a number of different tags and species. For example, many tags show decreases rather than increases west of India for ATOTIJ, despite the addition of non-zero AORGCJ (note: V54P in the plot labels below is equivalent to BASE):

image
image
Finally, this set of plots compares the sum of tags from the two runs not only to each other, but also to the bulk concentrations from the ACONC files from the corresponding runs
image

kmfoley and others added 6 commits November 3, 2022 09:40
Correct link to I/O API version 3.2 "large"
  On branch isam_update_21april2023
 	modified:   ../../cloud/acm_ae6/aqchem.F
 	modified:   ../../cloud/acm_ae6/cldproc_acm.F
 	modified:   ../../cloud/acm_ae6/convcld_acm.F
 	modified:   ../../cloud/acm_ae6/rescld.F
 	modified:   ../../isam/SA_DEFN.F
 	modified:   ../../isam/SA_WRAP_AE.F
 	modified:   vdiffacmx.F
 	modified:   ../acm2_stage/vdiffacmx.F
@kmfoley
Copy link
Collaborator

kmfoley commented Apr 28, 2023

This PR passes required tests and is ready to merge. Thank you @sergeynk for this update!

@kmfoley kmfoley merged commit 732ff6f into USEPA:5.4+ Apr 28, 2023
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.

4 participants