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

refract: match argument types earlier. #554

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

hvdijk
Copy link
Collaborator

@hvdijk hvdijk commented Oct 8, 2024

Overview

refract: match argument types earlier.

Reason for change

refract takes it eta parameter as a float even when I and N are double. However, in this case, we still want the eta * eta multiplication to be performed in double precision.

Description of change

Change the internal implementation function to not have mismatched parameter types.

Anything else we should know?

If there's any other relevant information we should know that may help us in
understanding and verifying your patch, please include it here.

Checklist

  • Read and follow the project Code of Conduct.
  • Make sure the project builds successfully with your changes.
  • Run relevant testing locally to avoid regressions.
  • Run clang-format-17 on all modified code.

refract takes it eta parameter as a float even when I and N are double.
However, in this case, we still want the eta * eta multiplication to be
performed in double precision. Change the internal implementation
function to not have mismatched parameter types.
@hvdijk hvdijk merged commit 6a99ac4 into uxlfoundation:main Oct 8, 2024
6 checks passed
@hvdijk hvdijk deleted the refract-mixed-precision branch October 8, 2024 10:22
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