USEPA / CMAQ

Code for U.S. EPA’s Community Multiscale Air Quality Model (CMAQ) which helps in conducting air quality model simulations
https://epa.gov/CMAQ
MIT License
277 stars 198 forks source link

Calculation of PMF_OC in ELMO #213

Closed cgnolte closed 5 months ago

cgnolte commented 6 months ago

Description There is a bug in the calculation of the ELMO variable PMF_OC (organic carbon in the Aitken and accumulation modes) causing non-carbon organic mass to be included.

Solution Modify lines 2590-2599 of ELMO_PROC.F as follows:

     CASE ( ID_PMF_OC )
        ! Sum up primary organic aerosol species normalized to
        ! just carbon mass
        VAL = 0.0
        DO IOA = 1,N_OA_NotTracers
           IF ( OASPC( IOA )%OMtoOC .GT. 0.0 ) THEN
              VAL = VAL + SUM( AEROSPC_CONC( MAP_OAtoAERO(IOA),: ),
 &                        MASK = AEROMODE(:)%FINE_MASK ) 
 &                      / OASPC( IOA )%OMtoOC
           END IF
        END DO
        OUTVAL = VAL  
kmfoley commented 5 months ago

Resolved with https://github.com/USEPA/CMAQ/pull/215 (merged 2024-04-09).