Repository navigation
Unified wrf/wrf-chem model_mod - #741
hkershaw-brown wants to merge 66 commits into
Conversation
New model_mod directory so development can happen concurrently on wrf and wrf_unified. Original pull request #683
will add back as needed
|
For un reviewed atmos-chem forward operators see #743 |
The wrf-dart shell scripts are in the wrf/shell_scripts directory This runme_filter script is not used.
There was a problem hiding this comment.
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
add wrf-chem to toc and list of available models
wrf on main does vert, then horiz for vert_convert and horiz, then vert for model_interpolate #404 (comment) I am not sure why wrf model_mod.f90 has vert/horiz order swapped for vertical conversion vs model_interpolate. The order for convert vertical obs gives differences in the last three decimal places: In pressure, out height OLD: 5223.5371313647593 NEW: 5223.5371313647584 Also fix missing implicit none!
The set and get location changes the lat lon #621
The if statements capture the in/out but since there is an initialization set to false.
see #744 static data
|
hybrid coordinate: "It is mandatory to use the terrain following coordinate DART/models/wrf/tutorial/README.rst Lines 21 to 28 in 80502a8 Lines 288 to 290 in 80502a8 Apparently the "It is mandatory to use the terrain following coordinate Needs to be explained in the docs. |
|
This is in use by CU/DOE collaborators with the addition of #1148 |
|
note @hkershaw-brown changes for bitwise testing with wrf on |
CU/DOE colloborators are using hybrid cordinate
Add log_vert_interp, polar, periodic_x and periodic_y to the model_nml namelist statement, since these are namelist options in The regular wrf model_mod.f90. Note I do not have tests for these. model_mod.nml to match model_mod.f90 Namelist documentation
from meterological variables
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
Using 'lat-lon' map projection in WRF, assigns Cassini projection in DART #811,
bug: pert_wrf_bc code introduces artifacts to perturbed WRF boundary files #807 from wrf model_mod - Adding new features to WRF scripting and tutorial #1030 forces hybrid_opt in gen_retroc_icbc.sh but not in model_mod.f90
hybrid coord#649 Add WRF hybrid vertical coordinate #650 Unified wrf/wrf-chem model_mod #741 (comment)
static data only in wrf mete domain - test.
sfc_elev_max_diff
Forcing QTY_TEMPERTAURE to be QTY_POTENTIAL_TEMPERATURE - this seems incorrect. Edit: updated the comment in bounds_check de9d3f8. The state variable is forced to be qty_potential_temperature. QTY_TEMPERATURE can be interpolated by model_interpolate.
cloudwater units micrometer vs m
model_interpolate when zloc is VERTISUNDEF
DART/models/wrf/model_mod.f90
Lines 1430 to 1436 in a32ab03
Types of changes
Documentation changes needed?
Tests
Please describe any tests you ran to verify your changes.
Bitwise tests during refactoring: https://github.com/hkershaw-brown/wrf-tests.git
Checklist for merging
Checklist for release
Testing Datasets