Skip to content

Avoiding issues when propagating a laser with dt=0 #1219

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

Open
wants to merge 16 commits into
base: development
Choose a base branch
from

Conversation

EyaDammak
Copy link
Contributor

@EyaDammak EyaDammak commented Mar 26, 2025

This pull request kept the parameter hipace.dt optional, default 0 ; but asserts that dt > 0 (not only non-zero!) when laser is used.
3 CI input scripts + json files have been updated.

@EyaDammak EyaDammak requested a review from AlexanderSinn March 27, 2025 10:46
@EyaDammak
Copy link
Contributor Author

What do you think we should do? Solution A) or B)

@EyaDammak EyaDammak changed the title Update MultiLaser.cpp to avoid issues when propagating a laser with dt=0 Avoiding issues when propagating a laser with dt=0 Mar 27, 2025
@AlexanderSinn
Copy link
Member

I would prefer B). I wonder what Maxence thinks about this.

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.

Thanks for this PR! Having to specify dt (or any parameter) although unnecessary is IMO a bit confusing. I would therefore recommend to keep dt optional, default 0, and indeed assert that dt > 0 (not only non-zero!) when laser is used. Then, if needed, the CI input files should be updated.

@EyaDammak EyaDammak added the bug Something isn't working label Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants