Skip to content

Fix divide by zero fpe in apply_oda_incupd#164

Merged
jiandewang merged 1 commit into
NOAA-EMC:dev/emcfrom
DusanJovic-NOAA:fix_fpe_in_oda_incupd
Oct 24, 2025
Merged

Fix divide by zero fpe in apply_oda_incupd#164
jiandewang merged 1 commit into
NOAA-EMC:dev/emcfrom
DusanJovic-NOAA:fix_fpe_in_oda_incupd

Conversation

@DusanJovic-NOAA
Copy link
Copy Markdown

Move computation of tmp_h inside the if G%mask2dT test to avoid divide by zero error.

See ufs-community/ufs-weather-model#2906 for details.

Move computation of tmp_h inside the if G%mask2dT test to avoid divide by zero error
@jiandewang
Copy link
Copy Markdown
Collaborator

@sanAkel one more PR to review, it looks good to me. Can you check it ?

@jiandewang
Copy link
Copy Markdown
Collaborator

@DusanJovic-NOAA this PR will not change baseline, right ?

@DusanJovic-NOAA
Copy link
Copy Markdown
Author

@DusanJovic-NOAA this PR will not change baseline, right ?

Correct.

@sanAkel
Copy link
Copy Markdown
Collaborator

sanAkel commented Oct 11, 2025

@DusanJovic-NOAA and @jiandewang some effort must be spent on tracing the origins of why those aforementioned divide by zeros are happening; suggestion follows.

Copy link
Copy Markdown
Collaborator

@sanAkel sanAkel left a comment

Choose a reason for hiding this comment

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

Following this conversation this is a safe addition.

Suggestion:

Plot (spatial map) of locations of where the crash happens.

@gspetro-NOAA
Copy link
Copy Markdown

All tests have passed on the WM side for parent PR #2932. We can go ahead with the merge process here.

@jkbk2004
Copy link
Copy Markdown

All tests were done ok at ufs-community/ufs-weather-model#2932. @sanAkel @jiandewang can you merge this pr?

@jiandewang jiandewang merged commit 9c8b26c into NOAA-EMC:dev/emc Oct 24, 2025
52 checks passed
@DusanJovic-NOAA DusanJovic-NOAA deleted the fix_fpe_in_oda_incupd branch January 26, 2026 15:15
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.

5 participants