Skip to content

Bug fix explicit in-canopy diffusion of tracers.#371

Merged
grantfirl merged 4 commits into
ufs-community:ufs/devfrom
noaa-oar-arl:fix_canopy_vdf
Apr 21, 2026
Merged

Bug fix explicit in-canopy diffusion of tracers.#371
grantfirl merged 4 commits into
ufs-community:ufs/devfrom
noaa-oar-arl:fix_canopy_vdf

Conversation

@iri01

@iri01 iri01 commented Apr 8, 2026

Copy link
Copy Markdown

Description of Changes:

Remove hpbl/kpbl update due to explicit in-canopy diffusion, this ensures no meteorology effects due to explicit in-canopy diffusion, only due to integrated-canopy diffusion.
Use 10-m interpolated winds (instead of 1 hybrid model layer winds) for explicit in-canopy diffusion of tracers.

Removing hpbl update due to explicit in-canopy diffusion ensure no meteorological changes on the SRW-App AQM predictions of temperature, humidity, and winds in regions of contiguous canopies.

Using 10-interpolated winds in the initialization of the explicit canopy layers (instead of the 1 hydrid model layer winds) for the diffusion of tracers leads to further reductions in ozone biases and it's precursors in regions on contiguous canopies.

Tests Conducted:

Tests conducted on Gaea-C6 with the SRW-App AQM configuration/compilers. Tests conducted for GFS v16 and GFS v17_p8 physics.

Dependencies:

…cers. Remove hpbl/kpbl update due to explicit in-canopy diffusion.
@drnimbusrain

Copy link
Copy Markdown

@grantfirl We would kindly request a high priority review of this bug fix . We are targeting getting this fix into UWM for UFS-AQMv8 operations, which has plans to start retro runs in May. Thank you!

@dustinswales dustinswales left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks fine to me.
I recommend removing code vs. commenting it out.

Comment thread physics/PBL/SATMEDMF/canopy_driver.F Outdated
hpbl(i) = hpbl_can(i)
kpbl(i) = kpbl_can(i)
enddo
! do i = 1, im

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is there a reason to keep the commented out code?
(GitHub history takes care of tracking this, and keeps the code lean)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

No reason, will remove. This will be a part of future PR with explicit in-canopy effect on meteorology.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@dustinswales, I removed the commented lines, as agreed. Also, I had to correct a truncated line that showed up in the RT build.

@grantfirl grantfirl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks fine to me. I agree with @drnimbusrain about removing code instead of commenting it out.

@iri01 iri01 requested a review from JongilHan66 as a code owner April 17, 2026 19:22

@Qingfu-Liu Qingfu-Liu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

similar to reviewer's comments, the commented code should be removed

@gspetro-NOAA

Copy link
Copy Markdown

Testing completed successfully on ufs-community/ufs-weather-model#3186. This PR can be merged.

@grantfirl grantfirl merged commit a57d1a6 into ufs-community:ufs/dev Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants