Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARW new feature consistency check between real and wrf: HVC and moist…
… theta (#553) TYPE: bug fix KEYWORDS: consistency, namelist, hybrid, theta_m SOURCE: internal DESCRIPTION OF CHANGES: In the first routine where the metadata and the namelist values exist so as to allow value comparison, check whether the new features of v4.0 (use_theta_m and hybrid_opt) are set the same between the real program and the WRF model. If an inconsistency exists, flag the discrepancy for a graceful exit. Only tested for non NMM builds. This mod fixes the existing bug that allows inconsistent IC/BC data to be used by the model. The moist theta issue causes bad results in areas of higher moisture, but the WRF model will usually run to completion. The HVC inconsistency is typically more serious, causing the model to stop after 10-100 time steps. Neither would be easy to figure out what actually happened. LIST OF MODIFIED FILES: M share/input_wrf.F TESTS CONDUCTED: 1. Real program has options turned off, WRF has them turned on: ``` Input data is acceptable to use: wrfinput_d01 ---- ERROR: Input file hybrid_opt = 0 ---- ERROR: Namelist hybrid_opt = 2 ---- ERROR: hybrid_opt values must be consistent ---- ERROR: Input file use_theta_m = 0 ---- ERROR: Namelist use_theta_m = 1 ---- ERROR: use_theta_m values must be consistent NOTE: 2 namelist vs input data inconsistencies found. -------------- FATAL CALLED --------------- FATAL CALLED FROM FILE: <stdin> LINE: 1207 NOTE: Please check and reset these options ------------------------------------------- ``` 2. Real program has options turned on, WRF has them turned off: ``` Input data is acceptable to use: wrfinput_d01 ---- ERROR: Input file hybrid_opt = 2 ---- ERROR: Namelist hybrid_opt = 0 ---- ERROR: hybrid_opt values must be consistent ---- ERROR: Input file use_theta_m = 1 ---- ERROR: Namelist use_theta_m = 0 ---- ERROR: use_theta_m values must be consistent NOTE: 2 namelist vs input data inconsistencies found. -------------- FATAL CALLED --------------- FATAL CALLED FROM FILE: <stdin> LINE: 1207 NOTE: Please check and reset these options ------------------------------------------- ```
- Loading branch information