Skip to content

Conversation

@AlexanderSinn
Copy link
Member

When beam particles are injected from the plasma, the total number is not known from the start (an all ranks) so the diagnostic buffers need to be resized to avoid segfaults.

  • Small enough (< few 100s of lines), otherwise it should probably be split into smaller PRs
  • Tested (describe the tests in the PR description)
  • Runs on GPU (basic: the code compiles and run well with the new module)
  • Contains an automated test (checksum and/or comparison with theory)
  • Documented: all elements (classes and their members, functions, namespaces, etc.) are documented
  • Constified (All that can be const is const)
  • Code is clean (no unwanted comments, )
  • Style and code conventions are respected at the bottom of https://github.com/Hi-PACE/hipace
  • Proper label and GitHub project, if applicable

@AlexanderSinn AlexanderSinn added the component: diagnostics About any types of diagnostics label Apr 7, 2025
Copy link
Member

@MaxThevenet MaxThevenet left a comment

Choose a reason for hiding this comment

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

Cool, thanks for this PR!

@MaxThevenet MaxThevenet merged commit 5452c2d into Hi-PACE:development Apr 14, 2025
10 checks passed
EyaDammak added a commit to EyaDammak/hipace that referenced this pull request May 16, 2025
* Resize Beam Diagnostic buffer (Hi-PACE#1227)

* Fix shadow issue in AddGridExternalFields (Hi-PACE#1230)

* Update Ubuntu version of CI tests (Hi-PACE#1232)

* Remove CONDA from CUDA Local CI (Hi-PACE#1236)

* Beam read_from_file also reads spin (Hi-PACE#1172)

Co-authored-by: Alexander Sinn <[email protected]>

* Update physical constants (Hi-PACE#1223)

* Fix laser from file hanging with MPI (Hi-PACE#1235)

* Add Parser Debug Print Utility (Hi-PACE#1238)

* Fix CI with MPI (Hi-PACE#1241)

---------

Co-authored-by: Alexander Sinn <[email protected]>
Co-authored-by: Maxence Thévenet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: diagnostics About any types of diagnostics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants