Skip to content

Fix data types in ice_boundary.F90 haloUpdate#1104

Merged
apcraig merged 1 commit into
CICE-Consortium:mainfrom
apcraig:warnings1
Apr 24, 2026
Merged

Fix data types in ice_boundary.F90 haloUpdate#1104
apcraig merged 1 commit into
CICE-Consortium:mainfrom
apcraig:warnings1

Conversation

@apcraig

@apcraig apcraig commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

PR checklist

  • Short (1 sentence) summary of your PR:
    Fix data types in ice_boundary.F90 haloUpdate
  • Developer(s):
    apcraig
  • Suggest PR reviewers from list in the column to the right.
  • Please copy the PR test results link or provide a summary of testing completed below.
    tested on derecho with 6 compilers, results are bit-for-bit. https://github.com/CICE-Consortium/Test-Results/wiki/cice_by_hash_forks#4c1a6da409371ee3a03c73ce0073b9ebab92653d
  • How much do the PR code changes differ from the unmodified code?
    • bit for bit
    • different at roundoff level
    • more substantial
  • Does this PR create or have dependencies on Icepack or any other models?
    • Yes
    • No
  • Does this PR update the Icepack submodule? If so, the Icepack submodule must point to a hash on Icepack's main branch.
    • Yes
    • No
  • Does this PR add any new test cases?
    • Yes
    • No
  • Is the documentation being updated? ("Documentation" includes information on the wiki or in the .rst files from doc/source/, which are used to create the online technical docs at https://readthedocs.org/projects/cice-consortium-cice/. A test build of the technical docs will be performed as part of the PR testing.)
    • Yes
    • No, does the documentation need to be updated at a later time?
      • Yes
      • No
  • Please document the changes in detail, including why the changes are made. This will become part of the PR commit log.

Fix an oversight in the recent implementation of ice_boundary.F90 where the haloUpdates were communicating doubles instead of the native (dbl,real,int) type. Update the new boundary condition calculation to use consistent types and correct type conversion. This was fixed in generate_haloUpdates.sh then applied to the mpi and serial versions of ice_boundary.F90.

Minor cleanup of ice_broadcast and ice_gather_scatter to make mpi variables consistent with respect to capitalization of names.

These changes are bit-for-bit identical.

Closes #1102

Fix an oversight in the recent implementation of ice_boundary.F90 where the
haloUpdates were communicating doubles instead of the native (dbl,real,int)
type.  Update the new boundary condition calculation to use consistent
types and correct type conversion.  This was fixed in generate_haloUpdates.sh
then applied to the mpi and serial versions of ice_boundary.F90.

Minor cleanup of ice_broadcast and ice_gather_scatter to make mpi variables
consistent with respect to capitalization of names.

These changes are bit-for-bit identical.

@NickSzapiro-NOAA NickSzapiro-NOAA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @apcraig !!! And thanks @DeniseWorthen for finding the compiler warnings!

@apcraig apcraig merged commit 0431203 into CICE-Consortium:main Apr 24, 2026
2 checks passed
NickSzapiro-NOAA pushed a commit to NickSzapiro-NOAA/CICE that referenced this pull request Apr 29, 2026
Fix an oversight in the recent implementation of ice_boundary.F90 where the
haloUpdates were communicating doubles instead of the native (dbl,real,int)
type.  Update the new boundary condition calculation to use consistent
types and correct type conversion.  This was fixed in generate_haloUpdates.sh
then applied to the mpi and serial versions of ice_boundary.F90.

Minor cleanup of ice_broadcast and ice_gather_scatter to make mpi variables
consistent with respect to capitalization of names.

These changes are bit-for-bit identical.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

-Wconversion compiler warnings in ice_boundary

3 participants