Try to trace the source of the INMASS variable in WRF-CMAQ coupled model

Hi all,
The version of my coupled model is WRFv4.5-CMAQv5.4. I want to know which variable the INMASS_ws in subroutine get_aerosol_Optics_RRTMG_SW get finally refers to, is it the variable ‘cgrid’ in cmaq?
I noticed that the INMASS_ws here is a collection of water-soluble ions, and tried to split it into each water-soluble ion, such as INMASS_Na.
I’ve done some tracing and found that INMASS_ws points to the mass_ws of subroutine RRTMG_SWRAD, then to subroutine radiation_driver and first_rk_step_part1 respectively, becoming grid%mass_ws. Then I trace the ‘grid’ to subroutine solve_em, solve_interface and integrate, and finally to the head_grid variable in main/module_wrf_top.F.
At this point, I’m stuck. It’s not clear to me how the chemical data used here came from cmaq part. I don’t know what to do next, please give me some help if you are familiar with the coupled model.
Liu.

Hi Liu,

In the WRF-CMAQ coupled model, there are five categories of aerosol information are sent to WRF from CMAQ. These five categories are: WS (water soluble), IN (water insoluble), SS (sea salt), EC (elemental carbon), and H2O (water) and defined in feedback_setup subroutine in twoway_feedback.F90. If you want to examine each component’s impact, you have to add new categories. In any case, please examine the code and if you have additional question, please feel free to contact me.

Cheers,
David