Skip to content

Feature/pbl m ylv2 - #550

Merged
ywkawai merged 8 commits into
developfrom
feature/pbl_MYlv2
Jul 21, 2026
Merged

Feature/pbl m ylv2#550
ywkawai merged 8 commits into
developfrom
feature/pbl_MYlv2

Conversation

@ywkawai

@ywkawai ywkawai commented Jul 21, 2026

Copy link
Copy Markdown
Owner

close #547
close #549

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a new MYNN Level 2 planetary boundary layer (PBL) scheme to the nonhydrostatic atmosphere model (including diagnostic outputs and a new boundary-layer test case), and fixes a hydrostatic basic-state bug when PTLAPS = 0 (Issue #549).

Changes:

  • Implement MYNN Level 2 PBL turbulence parameterization (new BL common + MYNN Lv2 modules) and wire it into AtmosPhyBl, history output, and build system (Issue #547).
  • Add a new boundary_layer test case configuration + user init + visualization helper.
  • Fix division-by-zero in hydrostatic_calc_basicstate_constPTLAPS when PTLAPS is zero (Issue #549).

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
model/atm_nonhydro3d/test/case/boundary_layer/visualize/visualize.sh Adds plotting commands for boundary-layer testcase outputs.
model/atm_nonhydro3d/test/case/boundary_layer/run.conf Adds runtime config enabling BL_TYPE='MYNN_LEVEL2' and output variables.
model/atm_nonhydro3d/test/case/boundary_layer/mod_user.F90 Adds testcase-specific initialization (incl. PTLAPS=0 path exercising the bugfix).
model/atm_nonhydro3d/test/case/boundary_layer/Makefile Adds build/run harness for the new testcase.
model/atm_nonhydro3d/test/case/boundary_layer/init.conf Adds init configuration for the new testcase.
model/atm_nonhydro3d/src/atmos/mod_atmos_phy_bl.F90 Wires in MYNN Lv2 BL scheme, diagnostics, boundary-condition handling, and tendency application.
model/atm_nonhydro3d/src/atmos/mod_atmos_phy_bl_vars.F90 Adds BL diagnostic variables (TKE/NU/KH) and history output handling.
model/atm_nonhydro3d/src/atmos/mod_atmos_component.F90 Passes dynamical-core boundary-condition handler into the PBL process.
model/atm_nonhydro3d/src/admin/mod_dg_driver.F90 Adds BL process history output calls.
FElib/src/Makefile Adds BL turbulence objects to the library build.
FElib/src/fluid_dyn_solver/scale_atm_dyn_dgm_hydrostatic.F90 Fixes PTLAPS=0 branch in hydrostatic basic-state calculation.
FElib/src/depend Adds dependency rules for new BL turbulence modules.
FElib/src/bl_turbulence/scale_atm_phy_bl_dgm_mynn_lv2.F90 New MYNN Level 2 diagnostic closure implementation (diffusivities + TKE).
FElib/src/bl_turbulence/scale_atm_phy_bl_dgm_common.F90 New shared BL vertical-implicit diffusion/tendency machinery.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread FElib/src/bl_turbulence/scale_atm_phy_bl_dgm_mynn_lv2.F90
Comment thread FElib/src/bl_turbulence/scale_atm_phy_bl_dgm_mynn_lv2.F90 Outdated
Comment thread model/atm_nonhydro3d/src/atmos/mod_atmos_phy_bl_vars.F90 Outdated
Comment thread model/atm_nonhydro3d/src/atmos/mod_atmos_phy_bl_vars.F90
Comment thread model/atm_nonhydro3d/src/atmos/mod_atmos_phy_bl.F90
Comment thread model/atm_nonhydro3d/src/atmos/mod_atmos_phy_bl.F90 Outdated
Comment thread model/atm_nonhydro3d/test/case/boundary_layer/init.conf Outdated
Comment thread model/atm_nonhydro3d/test/case/boundary_layer/run.conf Outdated
Comment thread model/atm_nonhydro3d/test/case/boundary_layer/mod_user.F90 Outdated
@ywkawai
ywkawai merged commit a770d63 into develop Jul 21, 2026
1 check passed
@ywkawai
ywkawai deleted the feature/pbl_MYlv2 branch July 26, 2026 05:52
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.

Fix a bug in hydrostatic_calc_basicstate_constPTLAPS when PTLAPS is set to be 0 Add the MYNN level 2 scheme as a planetary boundary layer scheme

2 participants