Skip to content

Remove extra copy of compute_global_grid_integrals#762

Merged
adcroft merged 1 commit intoNOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:duplicate_compute_global_grid_integrals
Dec 4, 2024
Merged

Remove extra copy of compute_global_grid_integrals#762
adcroft merged 1 commit intoNOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:duplicate_compute_global_grid_integrals

Conversation

@Hallberg-NOAA
Copy link
Member

The subroutine compute_global_grid_integrals() appeared in both the MOM_state_initialization and MOM_shared_initialization modules, but was only being called from the latter. This commit removes the extra copy in MOM_state_initialization. It also removes some unnecessary parentheses in the copy that is being retained, in part to facilitate the review of this commit. All answers are bitwise identical, and no publicly visible interfaces are altered.

  The subroutine compute_global_grid_integrals appeared in both the
MOM_state_initialization and MOM_shared_initialization modules, but was only
being called from the latter.   This commit removes the extra copy in
MOM_state_initialization.  It also removes some unnecessary parentheses in the
copy that is being retained, in part to facilitate the review of this commit.
All answers are bitwise identical, and no publicly visible interfaces are
altered.
@Hallberg-NOAA Hallberg-NOAA added the refactor Code cleanup with no changes in functionality or results label Nov 30, 2024
Copy link
Member

@adcroft adcroft left a comment

Choose a reason for hiding this comment

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

Good catch

@adcroft
Copy link
Member

adcroft commented Dec 4, 2024

@adcroft adcroft merged commit 20888e3 into NOAA-GFDL:dev/gfdl Dec 4, 2024
@Hallberg-NOAA Hallberg-NOAA deleted the duplicate_compute_global_grid_integrals branch January 19, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code cleanup with no changes in functionality or results

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants