Skip to content

HYCOM initialization fixes for UFS debugging#2

Merged
BinLiu-NOAA merged 2 commits into
NOAA-EMC:emc/developfrom
hafs-community:fix/debug
Jan 12, 2023
Merged

HYCOM initialization fixes for UFS debugging#2
BinLiu-NOAA merged 2 commits into
NOAA-EMC:emc/developfrom
hafs-community:fix/debug

Conversation

@danrosen25
Copy link
Copy Markdown

Reinitialize arrays to avoid debugging NaN checks and allows for -check all during CMAKE_Fortran_FLAGS_DEBUG

Issues Fixed
Cases where array1(:,:) = array2(:,:) trips a run time NaN check when the active array size (ii,jj) is smaller than the actual array size (idm,jdm). To avoid this, two arrays are reinitialized to non NaN values.

These changes were completed in collaboration with the NAVY HYCOM team.

Issue HYCOM#15 noted cases where array1(:,:) = array2(:,:) trips a run
time NaN check when the active array size (ii,jj) is smaller than
the actual array size (idm,jdm).  To avoid this, two arrays have
been reinitialized.
@BinLiu-NOAA BinLiu-NOAA marked this pull request as ready for review January 4, 2023 04:24
@BinLiu-NOAA
Copy link
Copy Markdown

@MariaAristizabal-NOAA, @hyunsookkim-NOAA, and @BijuThomas-NOAA, please help to review the PR. This change is needed for HAFSv1 code freeze. Thanks!

@BijuThomas-NOAA
Copy link
Copy Markdown
Collaborator

@MariaAristizabal-NOAA, @hyunsookkim-NOAA, and @BijuThomas-NOAA, please help to review the PR. This change is needed for HAFSv1 code freeze. Thanks!

@BinLiu-NOAA The changes look good to me for adding debug option for HyCOM

Copy link
Copy Markdown

@BinLiu-NOAA BinLiu-NOAA left a comment

Choose a reason for hiding this comment

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

@BijuThomas-NOAA has tested and reviewed/approved these changes.

Looks good to me as well.

@BinLiu-NOAA BinLiu-NOAA merged commit 2443753 into NOAA-EMC:emc/develop Jan 12, 2023
@BinLiu-NOAA BinLiu-NOAA deleted the fix/debug branch January 12, 2023 14:07
@jkbk2004
Copy link
Copy Markdown

@BinLiu-NOAA ufs-community/ufs-weather-model#1544 is ready. So, go ahead to merge in this pr, please.

@jkbk2004
Copy link
Copy Markdown

sorry merged already!

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