Commit 71e8e6f
authored
Moved deallocate statement: error when setting diag_nwp2 = 1 due to memory deallocation (#2240)
TYPE: Bug fix
KEYWORDS: seg fault, diag_nwp2
SOURCE: Menda Chasteen
DESCRIPTION OF CHANGES:
Running with `diag_nwp2 = 1` leads to a segmentation fault related to
prematurely deallocating `dz8w` in
[start_em.F](https://github.com/wrf-model/WRF/blob/f52c197ed39d12e087d02c50f412d90d418f6186/dyn_em/start_em.F#L2004).
This PR fixes the error by moving the deallocate statement to after the
`trad_fields` call.
LIST OF MODIFIED FILES:
dyn_em/start_em.F
TESTS CONDUCTED:
The regression tests are all passing.
RELEASE NOTE: This PR fixes a seg fault error due to early deallocation
of array dz8w for diag_nwp2=2 option in start_em.F.1 parent 7329170 commit 71e8e6f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2001 | 2001 | | |
2002 | 2002 | | |
2003 | 2003 | | |
2004 | | - | |
2005 | 2004 | | |
2006 | 2005 | | |
2007 | 2006 | | |
| |||
2167 | 2166 | | |
2168 | 2167 | | |
2169 | 2168 | | |
| 2169 | + | |
2170 | 2170 | | |
2171 | 2171 | | |
2172 | 2172 | | |
| |||
0 commit comments