Skip to content

Conversation

@hkershaw-brown
Copy link
Member

@hkershaw-brown hkershaw-brown commented Sep 26, 2024

Description:

Refactored WRF model mod for WRF & WRF CHEM.
Namelist selectable QTYS, see #404 for details.

Created a wrf_unified model directory. This is to allow concurrent development on wrf and wrf_unified.
wrf_unified/model_mod is ~4500 less than the wrf/model_mod and this is a bit of a headache for keeping up-to-date with main (easy to miss changes in such differing code).

See pull #683 for original pull request
wrf-wrf-chem branch available at https://github.com/hkershaw-brown/DART/tree/wrf-wrf-chem

Fixes issue

Fixes #404
Partial #359 (WRF)
Partial #624 (WRF)

To do:
Follow fixes for #811, #807 from wrf model_mod

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Documentation changes needed?

  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.

Tests

Please describe any tests you ran to verify your changes.
Bitwise tests during refactoring

Checklist for merging

  • Updated changelog entry
  • Documentation updated
  • Update conf.py

Checklist for release

  • Merge into main
  • Create release from the main branch with appropriate tag
  • Delete feature-branch

Testing Datasets

  • Dataset needed for testing available upon request
  • Dataset download instructions included
  • No dataset needed

hkershaw-brown and others added 4 commits September 26, 2024 13:35
New model_mod directory so development can happen concurrently on
wrf and wrf_unified.
Original pull request #683
@hkershaw-brown
Copy link
Member Author

For un reviewed atmos-chem forward operators see #743

@hkershaw-brown hkershaw-brown added the wrf Weather Research & Forecasting Model label Dec 11, 2024
@hkershaw-brown hkershaw-brown requested a review from Copilot June 9, 2025 16:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request refactors the WRF model_mod for both WRF and WRF CHEM by introducing a unified model_mod and updating corresponding documentation and configuration files. Key changes include:

  • Addition of a build script (quickbuild.sh) in the wrf_unified directory.
  • Extensive documentation updates in readme.rst describing the unified model and its configuration.
  • A new model_mod.nml file with updated configuration and minor comment updates to observation modules.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
models/wrf_unified/work/quickbuild.sh Introduces a build script for the new unified model
models/wrf_unified/readme.rst Provides documentation updates for the unified WRF model interface
models/wrf_unified/model_mod.nml Defines new namelist settings for the unified model_mod
assimilation_code/modules/observations/default_quantities_mod.f90 Updates observation quantities comments with a new potential temperature entry
assimilation_code/modules/observations/atmosphere_quantities_mod.f90 Updates observation quantities comments with a new potential temperature entry
Comments suppressed due to low confidence (2)

assimilation_code/modules/observations/default_quantities_mod.f90:14

  • [nitpick] Consider adding a brief comment that explains the rationale behind adding QTY_2M_POTENTIAL_TEMPERATURE to the observation quantities documentation.
!   QTY_2M_POTENTIAL_TEMPERATURE

assimilation_code/modules/observations/atmosphere_quantities_mod.f90:107

  • [nitpick] Consider adding documentation for the inclusion of QTY_2M_POTENTIAL_TEMPERATURE to clarify its intended use and context in the module.
!   QTY_2M_POTENTIAL_TEMPERATURE

@hkershaw-brown
Copy link
Member Author

Closing since this is a year+ without review, and this branch is probably about to get noisy with high-res wrf-chem & separate met & emissions files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

atmos-chem wrf Weather Research & Forecasting Model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat req: Refactor wrf model_mod and models/wrf directory, unify WRF/WRF-CHEM

2 participants