Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an error with O31D exceeding vertical dimension kte (#1803)
TYPE: bug fix KEYWORDS: O3 output, o3input=0, RRTMG-LW SOURCE: Reported by Samm Elliott, fixed internally DESCRIPTION OF CHANGES: Problem: In 4.4, we introduced ozone output o3rad when o3input = 0, that is to use ozone profile provided by the RRTMG code. But the use of output array accessed memory with the vertical dimension > kte. This can cause segmentation fault on some systems. Solution: The array is now limited to use only when vertical dimension is less than kte. LIST OF MODIFIED FILES: M phys/module_ra_rrtmg_lw.F TESTS CONDUCTED: 1. Yes 2. Are the Jenkins tests all passing? RELEASE NOTE: Fixed a memory access error when filling output array o3rad for o3input = 0. No impact on results, but the error could potentially cause the model to abort.
- Loading branch information