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 ConstF special k=0 case to address NaN's #818

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

cemitch99
Copy link
Member

@cemitch99 cemitch99 commented Jan 29, 2025

This PR adds a treatment of the special limiting cases kx = 0, ky = 0, or kt = 0 in the ConstF element, in order to avoid a division by zero that occurs in these cases.

This fixes #116

@cemitch99 cemitch99 requested a review from ax3l January 29, 2025 19:28
@ax3l ax3l added bug Something isn't working bug: affects latest release Bug also exists in latest release version component: elements Elements/external fields labels Jan 30, 2025
@ax3l ax3l self-assigned this Jan 30, 2025
@ax3l ax3l added this to the Sirepo (FY24/24 Phase 1 SBIR) milestone Jan 30, 2025
Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

@ax3l ax3l merged commit a0471ef into ECP-WarpX:development Jan 30, 2025
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: affects latest release Bug also exists in latest release version bug Something isn't working component: elements Elements/external fields
Projects
None yet
Development

Successfully merging this pull request may close these issues.

constf.kt = 0: handle special case
2 participants