Skip to content

Conversation

@c2xu
Copy link

@c2xu c2xu commented Dec 12, 2025

Moving HA_accum for SSH into the n-loop, so that harmonic analysis is performed on the instantaneous SSH instead of the time-averaged SSH after the n-loop. My test case does not show any noticeable difference but I think this would make the harmonic analysis more accurate if relatively larger time steps are used.

Moving HA_accum for SSH into the n-loop, so that harmonic analysis
is performed on the instantaneous SSH instead of the time-averaged
SSH after the n-loop.
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.

I think that there should be a new runtime parameter to switch between the two options of when to call HA_accum because this commit will change answers and it is possible that the previous solutions are already in use. Also, it may be slightly less expensive to do the harmonic analysis less frequently, although I do not think that the difference in CPU time will be significant.

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.

2 participants