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

WarpX class: coalesce the 4 declarations of ComputeExternalFieldOnGridUsingParser into one #5730

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

lucafedeli88
Copy link
Member

This PR simplifies the declaration of ComputeExternalFieldOnGridUsingParser by using std::variant and default parameter values .

@lucafedeli88 lucafedeli88 added the cleaning Clean code, improve readability label Mar 4, 2025
@lucafedeli88 lucafedeli88 changed the title [WIP] WarpX class: coalesce the 4 declarations of ComputeExternalFieldOnGridUsingParser into one WarpX class: coalesce the 4 declarations of ComputeExternalFieldOnGridUsingParser into one Mar 4, 2025
@lucafedeli88 lucafedeli88 requested a review from RemiLehe March 4, 2025 12:09
@clarkse
Copy link
Member

clarkse commented Mar 6, 2025

@lucafedeli88 this looks like a nice improvement using std::variant. I will keep this in mind next time for expanding templated declarations.

@clarkse clarkse closed this Mar 6, 2025
@clarkse clarkse reopened this Mar 6, 2025
Copy link
Member

@clarkse clarkse left a comment

Choose a reason for hiding this comment

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

Looks like a nice improvment. Sorry I accidentally closed this when commenting earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleaning Clean code, improve readability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants