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

module_sf_ruclsm imprecision breaks gfortran in debug mode for RRFS tests #5

Closed
SamuelTrahanNOAA opened this issue Sep 22, 2022 · 0 comments · Fixed by #6 or ufs-community/ufs-weather-model#1437
Labels
bug Something isn't working

Comments

@SamuelTrahanNOAA
Copy link
Collaborator

SamuelTrahanNOAA commented Sep 22, 2022

Description

The module_sf_ruclsm has comparisons to zero, which break the code when numbers are very close to 0, such as 1e-322. This happens with the gfortran compiler when compled -DDEBUG=ON since the option to truncate subnormal numbers is turned off.

Steps to Reproduce

  1. Fix bugs in the fv_regional_bc.F90 that prevent RRFS from running in DEBUG=ON mode
  2. Run one of the RRFS tests in DEBUG=ON mode with the gnu compiler on Hera
  3. View the resulting core dumps using gdb
  4. Sadness

Additional Context

The model will fail much earlier, due to known bugs. I'm about to submit a PR and some issues to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant