Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify wrf/wrf-chem model_mod refactor #683

Closed
wants to merge 13 commits into from
Closed

Conversation

hkershaw-brown
Copy link
Member

Description:

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

Fixes issue

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

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

based on the latest 3d model_mod template

* state variables added by namelist
* removes wrf_static_data_for_data, uses state_stucture_mod

Note for bitwise comparison with the existing wrf model_mod,
using function interpolate_geometric_height
#404 (comment)
2M variables forced to 2M qtys
QTY_TEMPERATURE forced to QTY_POTENTIAL_TEMPERATURE
This is to avoid:
 ERROR FROM:
  source : state_structure_mod.f90
  routine: get_varid_from_kind
  message:  Found            2  > 1
  message: ...  for dart kind : QTY_SURFACE_PRESSURE

However, should we use get_varid_from_varname instead
default is no bounds
for horizonatal bounds need to chose a qty on the same grid for static data
Latest from main, note keep wrf-wrf-chem version of wrf/model_mod.f90

note need to add #661 #649
@hkershaw-brown hkershaw-brown added the wrf Weather Research & Forecasting Model label Aug 29, 2024
@hkershaw-brown
Copy link
Member Author

closing inactivity.
Note there are a bunch of notes in #404 for future developers.

Be aware of various copies of the wrf model mod may have some or all of the issues (see also https://github.com/NCAR/DART/issues?q=is%3Aissue+label%3Awrf+) depending on when the code was copied)
wrf_chem
wrf_cmaq
GOES_chem
...

Additionally, strongly recommend not copying the current wrf directory for new model mods.

@hkershaw-brown hkershaw-brown changed the title wrf model_mod refactor unify wrf/wrf-chem model_mod refactor Sep 26, 2024
@hkershaw-brown hkershaw-brown changed the title unify wrf/wrf-chem model_mod refactor Unify wrf/wrf-chem model_mod refactor Sep 26, 2024
@hkershaw-brown hkershaw-brown added the Help Wanted Extra attention is needed label Sep 26, 2024
@hkershaw-brown
Copy link
Member Author

moving this to different directory to allow concurrent development on wrf and unified wrf model_mod.

hkershaw-brown added a commit that referenced this pull request Sep 26, 2024
New model_mod directory so development can happen concurrently on
wrf and wrf_unified.
Original pull request #683
hkershaw-brown added a commit that referenced this pull request Sep 26, 2024
New model_mod directory so development can happen concurrently on
wrf and wrf_unified.
Original pull request #683
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Extra attention is needed 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
1 participant