Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a bug in EnKF that can cause segfault in a diagnostic print #12

Merged
merged 1 commit into from
Jun 12, 2020

Conversation

jswhit
Copy link
Contributor

@jswhit jswhit commented Jun 11, 2020

in src/enkf/mpi_readobs, if the ensemble spread in observation space exceeds a value of 1000 a print statement is triggered that tries to print an array (mem_ob) that has already been deallocated. This causes a segfault on Orion. The fix is simply to not print mem_ob.

Does not affect results, but protects against a possible segfault if ensemble spread exceeds the threshold value.

@RussTreadon-NOAA RussTreadon-NOAA self-requested a review June 11, 2020 19:15
@jswhit
Copy link
Contributor Author

jswhit commented Jun 11, 2020

@RussTreadon-NOAA - this should probably get included in the GFS v16 branch since this bug could lead to a crash.

@MichaelLueken
Copy link
Contributor

Hi Jeff,

Since this is only a single commit, I can move forward with the change. Please create a new GitHub issue detailing the issue that you corrected, then I can merge the pull request.

Thanks,

Mike

Copy link
Contributor

@RussTreadon-NOAA RussTreadon-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undefined array, mem_ob, removed from print. Looks good to me.

@jswhit
Copy link
Contributor Author

jswhit commented Jun 12, 2020

Closes issue #15

@MichaelLueken MichaelLueken linked an issue Jun 12, 2020 that may be closed by this pull request
@MichaelLueken MichaelLueken self-requested a review June 12, 2020 17:47
Copy link
Contributor

@MichaelLueken MichaelLueken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with Russ. Removal of unallocated array, mem_ob, from the print is fine. Approving change and merging pull request.

@MichaelLueken MichaelLueken merged commit 93cd14b into NOAA-EMC:master Jun 12, 2020
lbi2018 pushed a commit to lbi2018/GSI that referenced this pull request Mar 4, 2022
…variable for regional FV3 DA (NOAA-EMC#12)

*Bug fix for EnKF analysis steps when using t (tv) as a control vector variable for regional FV3 DA.
*Whitespace and indentation clean-ups were made in src/enkf/gridio_fv3reg.f90.
Notes:
This PR addresses issue NOAA-EMC#13, which was reported by Jonathan Poterjoy (UMD).
And this bug should have affected all the EnKF steps (mean, update, recenter, etc.)
The bug fix is based on the diagnoses and discussions among @BinLiu-NOAA and @TingLei-NOAA (EMC), @XL-OU, Jonathan Poterjoy (UMD), Jason Sippel (HRD), etc.
hu5970 referenced this pull request in hu5970/GSI Apr 8, 2022
…nd (#12)

2m temperature is sensible temperature now. The convert from 2m potential
temperature to 2m temperature happens during background IO stage.
DavidHuber-NOAA pushed a commit to DavidHuber-NOAA/GSI that referenced this pull request Jul 19, 2023
use stack ncdiag, update hera.gnu hpc-stack, update to head of develop
emilyhcliu pushed a commit to emilyhcliu/GSI that referenced this pull request Oct 13, 2023
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.

Bug in EnKF (printing unallocated array)
4 participants