Skip to content

Fix for segmentation fault when running wave_stat.x in the global workflow#102

Merged
aerorahul merged 1 commit into
NOAA-EMC:developfrom
sbanihash:fix/wave_stat
Mar 5, 2025
Merged

Fix for segmentation fault when running wave_stat.x in the global workflow#102
aerorahul merged 1 commit into
NOAA-EMC:developfrom
sbanihash:fix/wave_stat

Conversation

@sbanihash
Copy link
Copy Markdown
Contributor

Description

change single to double precision in wave_stat.f90 to fix segmentation faults. Credit to @AminIlia-NOAA for pointing out the same issue he had with oceanicepost job and how it was fixed there.

Resolves #98

Type of change

  • Bug fix

Change characteristics

  • Is this a breaking change (a change in existing functionality)? NO
  • Does this change require a documentation update? NO

How has this been tested?

Same testing as documented in issue #98 was conducted with the new wave_stat.x created after the change and the wave_stat job did not crash.

Checklist

  • Any dependent changes have been merged and published
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • I have made corresponding changes to the documentation if necessary

@DavidHuber-NOAA
Copy link
Copy Markdown
Contributor

Excellent find @AminIlia-NOAA @sbanihash! Looking through the g2 library, I do wonder if all reals headed into g2 calls should be changed to real8 and/or if wave_stat.x should be compiled with the -r8 flag.

@edwardhartnett @AlexanderRichert-NOAA when interfacing with the g2_d library, should all reals be doubles?

Copy link
Copy Markdown
Contributor

@aerorahul aerorahul left a comment

Choose a reason for hiding this comment

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

looks good.

@aerorahul aerorahul merged commit 58f7901 into NOAA-EMC:develop Mar 5, 2025
DavidHuber-NOAA added a commit to NOAA-EMC/global-workflow that referenced this pull request Mar 12, 2025
…n/ice post products (#3433)

# Description
This updates the hashes for both the UFS_Utils and GFS-utils hashes. For
UFS_Utils, this is intended to update the hsi module for Gaea so that
that repository will again build on that platform. The updates to
GFS-utils require updates to to namelists as provided by @aerorahul.

Resolves #3432 

# Type of change
- [x] Bug fix (fixes something broken)
- [x] Maintenance (code refactor, clean-up, new CI test, etc.)

# Change characteristics

- Is this a breaking change (a change in existing functionality)? NO
- Does this change require a documentation update? NO
- Does this change require an update to any of the following submodules?
YES
  - [x] GFS-utils NOAA-EMC/gfs-utils#102
  - [x] UFS-utils ufs-community/UFS_UTILS#1031

# How has this been tested?
- [x] CI testing on Hera
- [x] Build tests on Gaea C6 and C5

# Checklist
- [x] Any dependent changes have been merged and published
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] My changes generate no new warnings
- [x] New and existing tests pass with my changes
- [x] This change is covered by an existing CI test or a new one has
been added

---------

Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
guoqing-noaa pushed a commit to guoqing-noaa/global-workflow that referenced this pull request May 29, 2025
…n/ice post products (NOAA-EMC#3433)

# Description
This updates the hashes for both the UFS_Utils and GFS-utils hashes. For
UFS_Utils, this is intended to update the hsi module for Gaea so that
that repository will again build on that platform. The updates to
GFS-utils require updates to to namelists as provided by @aerorahul.

Resolves NOAA-EMC#3432 

# Type of change
- [x] Bug fix (fixes something broken)
- [x] Maintenance (code refactor, clean-up, new CI test, etc.)

# Change characteristics

- Is this a breaking change (a change in existing functionality)? NO
- Does this change require a documentation update? NO
- Does this change require an update to any of the following submodules?
YES
  - [x] GFS-utils NOAA-EMC/gfs-utils#102
  - [x] UFS-utils ufs-community/UFS_UTILS#1031

# How has this been tested?
- [x] CI testing on Hera
- [x] Build tests on Gaea C6 and C5

# Checklist
- [x] Any dependent changes have been merged and published
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] My changes generate no new warnings
- [x] New and existing tests pass with my changes
- [x] This change is covered by an existing CI test or a new one has
been added

---------

Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
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.

Running wave_stat crashes with segmentation faults using the global-workflow build of gfs_utils

3 participants