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

Fix error in Moffat maxk calculation #1210

Merged
merged 4 commits into from
May 15, 2023
Merged

Fix error in Moffat maxk calculation #1210

merged 4 commits into from
May 15, 2023

Conversation

rmjarvis
Copy link
Member

@rmjarvis rmjarvis commented Feb 2, 2023

@jecampagne pointed out an error in our maxk calculation for Moffat. See details in #1208. The upshot is that our Moffat FFT renderings were a bit more accurate and a bit slower than they needed to be for the nominal maxk_threshold. This PR fixes the calculation to be only as accurate as requested.

@rmjarvis rmjarvis added this to the v2.5 milestone Feb 2, 2023
@rmjarvis rmjarvis added numerics Involving details of the numerical algorithms for performing some calculation(s) bug report Bug report optimization/performance Related to the speed and/or memory consumption of some aspect of the code labels Feb 2, 2023
This was linked to issues Feb 2, 2023
Copy link
Member

@jmeyers314 jmeyers314 left a comment

Choose a reason for hiding this comment

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

I didn't really try to follow the math, but changes all look reasonable (and I have pretty high confidence in all the unit testing).

@rmjarvis
Copy link
Member Author

Thanks Josh!

@rmjarvis rmjarvis merged commit 401a56d into main May 15, 2023
@rmjarvis rmjarvis deleted the #1208 branch May 15, 2023 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Bug report numerics Involving details of the numerical algorithms for performing some calculation(s) optimization/performance Related to the speed and/or memory consumption of some aspect of the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Moffat: setupFT Moffat: maxK
2 participants