Skip to content

Update MYNN-SFC submodule in CCPP - #396

Draft
XiaSun-Atmos wants to merge 38 commits into
ufs-community:ufs/devfrom
XiaSun-Atmos:ufs/mynnsfc_ccpp
Draft

XiaSun-Atmos wants to merge 38 commits into
ufs-community:ufs/devfrom
XiaSun-Atmos:ufs/mynnsfc_ccpp

Conversation

@XiaSun-Atmos

@XiaSun-Atmos XiaSun-Atmos commented Oct 9, 2026 •

Copy link
Copy Markdown

Description of Changes:

  • Remove direct physcons module dependencies from MYNN-SFC
  • Read universalized driver (MPAS WRF) and MYNN-SFC schemes
  • Limit the _lnd, _wat, _ice variables in the CCPP-level wrapper file; we chose to do this way because the unified driver can be more independent of modeling frameworks, since this submodule will be hooked up with MPAS, WRF, and CCPP
  • Enable MYNN-SFC and MYNN-EDMF coupling capabilities with wave and ocean currents

Tests Conducted:

Tests are done using CCPP SCM using SCM_HRRR_gf
UFS weather model CI tests are underway

OR Add any links to tests conducted. For example, "See ufs-community/ufs-weather-model#<pr_number>"

Dependencies:

Documentation:

NA

Issue (optional):

Related to NCAR/ccpp-scm#652

Contributors:

@joeolson42 @scrasmussen

dustinswales and others added 16 commits October 9, 2026 16:48
…to reflect new initial state required by MYNN sfc layer for the new tendency code
 * Read universalized driver (MPAS WRF) and MYNN-SFC schemes
 * Limit the _lnd, _wat, _ice variables in the CCPP-level wrapper file
 * Added a new CQS variable stemmed from the updated MYNN-SFC scheme

Co-authored-by: Joseph Olson <joseph.b.olson@noaa.gov>
Co-authored-by: Soren Rasmussen <soren@ucar.edu>
…ubmodule

* changes of intent to inout for diagnostics in the submodule to preserve the results after the first iteration in CCPP
* add guards for specfic humidity conversion for MPAS and WRF

Co-authored-by: Joseph Olson <joseph.b.olson@noaa.gov>
@XiaSun-Atmos
XiaSun-Atmos marked this pull request as draft October 29, 2026 00:49
XiaSun-Atmos and others added 2 commits October 29, 2026 19:50
Co-authored-by: Joseph Olson <joseph.b.olson@noaa.gov>
Co-authored-by: Benjanmin Barr <bbarr@ucar.edu>
con_xlf, con_ep2, con_karman, con_p608, errmsg, errflg)

use machine, only : kind_phys
use module_sf_mynnsfc_common

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It would be good to use

use module_sf_mynnsfc_common, only: ...

here as well

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.

Thanks Dom. I will make changes to this.

where (dry) qsfc_lnd = qsfc_lnd_ruc/(1.+qsfc_lnd_ruc) ! spec. hum
where (icy) qsfc_ice = qsfc_ice_ruc/(1.+qsfc_ice_ruc) ! spec. hum.
end if
!$acc end kernels

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This confuses me. When there's an end kernels directive, shouldn't there be an opening statement somewhere above? Same for the exit data directives below.

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.

Thanks for catching this. I accidentally deleted those lines when I was toggling the commented-out lprnt code block. I will add them back.

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