Skip to content

Conversation

theweathermanda
Copy link

Running with diag_nwp2 = 1 leads to a segmentation fault related to prematurely deallocating dz8w in start_em.F.

This PR fixes the error by moving the deallocate statement to after the trad_fields call

Move DEALLOCATE(dz8w) to after the diag_nwp2 calculation routine. dz8w is called by this routine, leading to the following error when diag_nwp2 = 1:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
@dudhia dudhia changed the base branch from master to develop August 23, 2025 00:30
@weiwangncar
Copy link
Collaborator

The regression test results:

Test Type              | Expected  | Received |  Failed
= = = = = = = = = = = = = = = = = = = = = = = =  = = = =
Number of Tests        : 23           24
Number of Builds       : 60           57
Number of Simulations  : 158           150        0
Number of Comparisons  : 95           86        0

Failed Simulations are: 
None
Which comparisons are not bit-for-bit: 
None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants