Description
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 amodel_mod.f90
edit where
T
is swapped withTHM
:
Line 695 in 27f85ee
-
Requires
T
toTHM
modifications toadd_bank_perts.ncl
including here:
-
Requires
T
toTHM
modifications to input.nml and param.csh here:
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:
&domains
time_step = 30
smooth_cg_topo = .true.
&dynamics
epssm = 0.9
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)