Skip to content

Inline Harmonic Analysis#963

Merged
Hallberg-NOAA merged 6 commits into
NOAA-GFDL:dev/gfdlfrom
c2xu:c2xu/harmonic_analysis
Sep 19, 2025
Merged

Inline Harmonic Analysis#963
Hallberg-NOAA merged 6 commits into
NOAA-GFDL:dev/gfdlfrom
c2xu:c2xu/harmonic_analysis

Conversation

@c2xu
Copy link
Copy Markdown

@c2xu c2xu commented Aug 26, 2025

Major updates to the inline harmonic analysis:

  1. The accumulator of FtF is now associated with each FtSSH, instead of shared between all FtSSH, such that both are updated at the same model time steps, eliminating the potential inconsistency when different FtSSH are called at different time steps.
  2. MOM_harmonic_analysis is now independent of MOM_tidal_forcing, providing more flexibility for performing harmonic analyses on tidal constituents not available in MOM_tidal_forcing (e.g., MK3, M4).

c2xu added 5 commits August 25, 2025 12:13
Update 1: The accumulator of FtF is now associated with each FtSSH,
instead of shared between all FtSSH, such that both are updated at
the same model time steps, eliminating the potential inconsistency
when different FtSSH are called at different time steps.
Update 2: HA_register are called inside HA_init. This should be done
for all variables/fields.
Update 3: A logical flag is set to control whether harmonic analysis
is to be enabled.
Update 4: time_ref and const_name are defined in HA_init, instead
of being copied from MOM_tidal_forcing. This commit prepares for
the separation of MOM_harmonic_analysis and MOM_tidal_forcing.
Update 5: MOM_harmonic_analysis is now independent of MOM_tidal_forcing,
providing more flexibility for performing harmonic analyses on tidal
constituents not available in MOM_tidal_forcing (e.g., MK3, M4).
Comment thread src/parameterizations/lateral/MOM_tidal_forcing.F90 Outdated
Comment thread src/diagnostics/MOM_harmonic_analysis.F90 Outdated
Comment thread src/diagnostics/MOM_harmonic_analysis.F90
Comment thread src/diagnostics/MOM_harmonic_analysis.F90 Outdated
@Hallberg-NOAA Hallberg-NOAA added enhancement New feature or request Parameter change Input parameter changes (addition, removal, or description) labels Sep 6, 2025
@c2xu c2xu force-pushed the c2xu/harmonic_analysis branch 2 times, most recently from e8dc900 to aa4268f Compare September 11, 2025 12:41
Update 6: The frequencies of 8 overtides/compound tides (MK3, MN4,
M4, MS4, S4, M6, S6, M8) have been added for the harmonic analysis.
@c2xu c2xu force-pushed the c2xu/harmonic_analysis branch from aa4268f to e477283 Compare September 12, 2025 11:50
Copy link
Copy Markdown
Member

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

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

With the revisions, this PR now is looking good to me. Thank you for this valuable new diagnostic capability, @c2xu.

@Hallberg-NOAA
Copy link
Copy Markdown
Member

This PR has passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/28884 with the expected warnings about a new runtime parameter.

@Hallberg-NOAA Hallberg-NOAA merged commit 00fde81 into NOAA-GFDL:dev/gfdl Sep 19, 2025
52 checks passed
@c2xu c2xu mentioned this pull request Sep 20, 2025
@c2xu c2xu deleted the c2xu/harmonic_analysis branch November 17, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Parameter change Input parameter changes (addition, removal, or description)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants