Skip to content

CCN-IN followup bugfix#99

Closed
grantfirl wants to merge 2 commits into
NOAA-EMC:developfrom
grantfirl:IN-CCN_bugfix
Closed

CCN-IN followup bugfix#99
grantfirl wants to merge 2 commits into
NOAA-EMC:developfrom
grantfirl:IN-CCN_bugfix

Conversation

@grantfirl
Copy link
Copy Markdown
Collaborator

@grantfirl grantfirl commented Apr 15, 2020

The following bug was discovered when propagating the MG CCN/IN changes to the CCPP SCM.

The variable iaerclm in the Model DDT (GFS_control_type) was conditionally initialized in GFS_typedefs.F90, leading to segmentation faults when the condition was not met (if the uninitialized variable somehow gets set to true by the compiler or an antecedent memory value).

Also, the character length of the fn_nml variable in the GFS_init_type DDT was different than other instances of the variable in the file. Changed the character length to 64 from 65 to be consistent. Credit to @pjpegion for finding this one.

In addition, two other minor bugfixes are included:

Model%debug is now initialized before use in GFS_typedefs.F90 and a redundant code block initializing variables for NoahMP was deleted.

This PR was initiated on the request of @climbfuji following successful CCPP SCM testing.

@junwang-noaa
Copy link
Copy Markdown
Collaborator

Code is closed in #104, close PR.

SamuelTrahanNOAA referenced this pull request in SamuelTrahanNOAA/fv3atm Jun 13, 2022
Testing Flake model with HRRR and GSD_v0 suites
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