Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frequency-dependent internal wave drag #815

Merged
merged 2 commits into from
Feb 16, 2025

Conversation

c2xu
Copy link

@c2xu c2xu commented Jan 27, 2025

Utilizing streaming band-pass filters, the frequency-dependent wave drag can be applied to the narrowband tidal velocities, instead of the broadband barotropic velocity. This allows internal wave drag to be optimized for different frequency bands independently, without affecting the low-frequency, non-tidal motions.

Also fixed the bug that Filt_accum() does not return a valid output if it is called at the corrector step.

This is the updated version of PR #722 and is implemented based on the latest code of dev/gfdl.

Copy link
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.

In addition to the specific comments that I have attached to the relevant lines, we also need to figure out what is causing the doxygen testing to fail before we can accept this PR.

Unfortunately, the doxygen is failing with a segmentation fault and hence is not giving a good error message (see https://github.com/NOAA-GFDL/MOM6/actions/runs/12990322755/job/36293848717?pr=815) . Just based on when doxygen is failing, it appears to be something unusual in a comment in MOM_wave_drag.F90 or MOM_streaming_filter.F90, but I don't have better guidance than this.

@c2xu c2xu force-pushed the c2xu/linear_freq_drag branch from 888e16e to d9ee30c Compare February 6, 2025 12:41
@c2xu c2xu force-pushed the c2xu/linear_freq_drag branch from d9ee30c to 08d91d9 Compare February 15, 2025 15:24
@c2xu c2xu requested a review from Hallberg-NOAA February 15, 2025 15:28
@c2xu c2xu force-pushed the c2xu/linear_freq_drag branch from 08d91d9 to 99916d3 Compare February 16, 2025 12:44
@c2xu c2xu requested a review from Hallberg-NOAA February 16, 2025 12:45
Copy link
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.

Everything now looks correct to me with this PR. Thank you for contributing this valuable new capability.

c2xu added 2 commits February 16, 2025 12:50
Utilizing streaming band-pass filters, the frequency-dependent wave
drag can be applied to the narrowband tidal velocities, instead of
the broadband barotropic velocity. This allows internal wave drag
to be optimized for different frequency bands independently, without
affecting the low-frequency, non-tidal motions.

Also fixed the bug that Filt_accum() does not return a valid output
if it is called at the corrector step.
Minor performance optimization. Also, this commit allows the filters
to be activated without the frequency-dependent drag being activated.
@Hallberg-NOAA Hallberg-NOAA added the enhancement New feature or request label Feb 16, 2025
@Hallberg-NOAA
Copy link
Member

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

@Hallberg-NOAA Hallberg-NOAA merged commit 3b3fb5e into NOAA-GFDL:dev/gfdl Feb 16, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants