Skip to content

Resolve "Failure of field solver when the beam reduces below the grid resolution" - #1765

Open
pecalvop wants to merge 3 commits into
masterfrom
814-failure-of-field-solver-when-the-beam-reduces-below-the-grid-resolution
Open

Resolve "Failure of field solver when the beam reduces below the grid resolution"#1765
pecalvop wants to merge 3 commits into
masterfrom
814-failure-of-field-solver-when-the-beam-reduces-below-the-grid-resolution

Conversation

@pecalvop

@pecalvop pecalvop commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Closes #902

This pull request introduces an important safeguard to the computeSelfFields_cycl method in PartBunch.cpp, ensuring that the space-charge calculation is skipped when the number of particles drops below the number of grid points. Additionally, it includes minor improvements to comments and formatting for clarity.

@pecalvop pecalvop self-assigned this Sep 4, 2026
@pecalvop pecalvop added the Bug Used in issue tracker to label a bug label Sep 4, 2026
@pecalvop
pecalvop requested review from aaadelmann and gsell September 4, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Used in issue tracker to label a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure of field-solver when the beam reduces below the grid resolution.

2 participants