Skip to content

For Coupled LM4 in UFS - #400

Merged
rhaesung merged 10 commits into
ufs-community:ufs/devfrom
JustinPerket:cpld_LM4
Nov 20, 2026
Merged

rhaesung merged 10 commits into
ufs-community:ufs/devfrom
JustinPerket:cpld_LM4

Conversation

@JustinPerket

@JustinPerket JustinPerket commented Oct 20, 2026 •

Copy link
Copy Markdown

Description

Adds a cpllm4 flag (flag_for_lm4_coupling) to GFS_surface_generic_post. When set, the downward direct and diffuse visible and near-IR shortwave fluxes are sent to the GFDL LM4 land model through CMEPS. With cpllm4 = .false. (the default), results don't change.

Part of UFS ATML-LM4 coupling PR ufs-community/ufs-weather-model#3394

Tests Conducted:

Tested through full URFS RT suite on Gaea C6

Dependencies:

Part of:

Documentation:

Docs in LM4 driver and UFS repos

@JustinPerket
JustinPerket marked this pull request as ready for review October 28, 2026 16:11

@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.

Looks good to me.

JustinPerket added a commit to NOAA-GFDL/LM4-NUOPC-driver that referenced this pull request Nov 18, 2026
…rivers, glaciers and multitile

* Adds two-way coupling between LM4 and the UFS atmosphere (the ATML-LM4 app), alongside the existing DATM-LM4 configuration:

- Two-way coupling with the UFS atmosphere: LM4 imports the atmosphere's exports, including the shortwave bands, and exports surface fluxes, surface temperature, albedos, and the surface-layer fields (`Sl_tref`, `Sl_qref`, `Sl_cmm`, `Sl_chh`, `Sl_zvfun`).
- Multiple LM4 tiles and surface types, including rivers and glaciers.
- Implicit/explicit coupling and kinematic flux options.
- Fixes to the coupling fluxes (zeroed fields, latent heat flux units, per-tile canopy tracers, per-cell air density), and to `p_surf` and the restart time on restart runs.
- Initializes gust from `compute_gust`.
- Supports building with GNU compilers.
- Remove unused Sl_t export to atm

**Answer changing:** DATM-LM4 results change, because of the `ex_dtmass` and `ex_q_surf` fixes and the flux fixes.

Known limitation: `Sl_sfrac`, `Fall_gflx`, `Fall_roff`, `Fall_soff`, and `Fall_evap` are currently exported as zero. They are mostly diagnostic in UFS ATM.

Part of:
- UFS: ufs-community/ufs-weather-model#3394
- UFSATM: NOAA-EMC/ufsatm#1152
- ccpp-physics: ufs-community/ccpp-physics#400
- CMEPS: NOAA-EMC/CMEPS#175
@BrianCurtis-NOAA

Copy link
Copy Markdown

Any reason to delay the start of UFSWM testing due to CI failures?

@rhaesung

Copy link
Copy Markdown
Collaborator

Any reason to delay the start of UFSWM testing due to CI failures?

@BrianCurtis-NOAA No reason to delay—unrelated to these code changes. Good to proceed!

@gspetro-NOAA

Copy link
Copy Markdown

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

@gspetro-NOAA

Copy link
Copy Markdown

@dustinswales @rhaesung Please merge this PR.

@rhaesung
rhaesung merged commit 8b1a008 into ufs-community:ufs/dev Nov 20, 2026
1 of 3 checks passed
AndersJensen-NOAA pushed a commit to AndersJensen-NOAA/ccpp-physics that referenced this pull request Nov 24, 2026
Brings in the coupled LM4 changes (ufs-community#400).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EHvrRsTkZHmdENdJj9ZRsp
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.

5 participants