-
Notifications
You must be signed in to change notification settings - Fork 145
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
DART with WRF 4+ #661
Comments
Successfully completed testing of WRF4.5.2 with DART tutorial example. Since version WRF4.3 new namelist options were included to handle vertical instability (CFL) issues as described above for WRF4.0 tutorial case. WRF4.5.2 was successfully run, similarly to the WRF4.0 as described above, except the following namelist options can be returned to their default values as:
and the following namelist item should be added.
Thank you @lkugler for the guidance on that stability option -- this citation may help with further information about the vertical stability option. I need to incorporate this stability guidance for WRFv4.0 and WRFv4.5.2 to existing WRF-DART Tutorial documentation (v3.9.1), which should include: 1) necessary namelist options for WRFv4+, 2) source code changes related to THM variable |
After performing some additional WRF testing with v4.5.2, (see pull request #650), any documentation regarding stability instructions should also include instructions/coding changes that warn the user, or force the run to fail, if the setup is not compatible with WRFv3.9 and earlier versus WRFv4.0 and later. For example, using WRFv4.0+ with WRFv3.9 setup currently does not fail, but provides reasonable but deprecated performance, that could easily remain unnoticed. Similar to sigma hybrid fix code which identifies coordinates from wrfinput global attributes, could identify WRF version from wrfinput file global attribute:
then locate minimal requirements (e.g. T vs THM and namelist.input settings) in DART state. |
Issue created from comment in #404
In addition to making the WRFv3.9.1-DART Tutorial compatible with Derecho as part of the completed issue #627 which was resolved by PR #636 -- I have continued to test WRFv4+ versions with the Tutorial as a continuation of issue #627. I currently have WRFv4 working with the tutorial. This is not a complete wrf model_mod refactor as outlined in this thread, but only includes basic requirements to get DART working with WRFv4+ versions including:
Implementing the sigma hybrid coordinates which are the default in WRFv4+ and are part of PR Add WRF hybrid vertical coordinate #650.
Swapping T (potential temperature) with THM (moist/dry potential temperature) as discussed in bug THM WRF v3 vs v4 #385.
The T to THM change mostly includes only namelist changes, but also requires a
model_mod.f90
edit whereT
is swapped withTHM
:DART/models/wrf/model_mod.f90
Line 695 in 27f85ee
Requires
T
toTHM
modifications toadd_bank_perts.ncl
including here:DART/models/wrf/shell_scripts/add_bank_perts.ncl
Line 46 in 27f85ee
Requires
T
toTHM
modifications to input.nml and param.csh here:DART/models/wrf/tutorial/template/input.nml.template
Line 120 in 27f85ee
DART/models/wrf/shell_scripts/param.csh
Lines 50 to 57 in 27f85ee
Also requires additional flag
use_theta_m=0
within&dynamics
section of WRFnamelist.input
. Makes T=THM.Finally, during runtime the CONUS tutorial example tends to generate CFL errors 30 minutes after the first analysis step. CFL warnings/errors are related to issues with vertical stability sometimes related to complex terrain. These warnings were overcome by editing WRF namelist.input settings to:
These settings using WRFv4.0 allowed the tutorial example to run to completion and provided diagnostics similar to WRF3.9.1. Not clear if these instability issues were related to using WRFv4.0, where a more updated version (WRFv4.5) may be more stable. I could provide additional instructions within the WRF-DART tutorial for WRFv4+ users. This should help prepare them for issues related to hybrid coordinates and the T/THM transition.
Originally posted by @braczka in #404 (comment)
The text was updated successfully, but these errors were encountered: