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.cpp : move free function TagWithLevelSuffix inside WarpX::AllocInitMultiFab #5582

Conversation

lucafedeli88
Copy link
Member

TagWithLevelSuffix is used only once inside WarpX::AllocInitMultiFab, and it can be replaced with a one-liner.
For this reason, in order to simplify the WarpX class, I would suggest implementing the functionality directly inside WarpX::AllocInitMultiFab

@lucafedeli88 lucafedeli88 added the cleaning Clean code, improve readability label Jan 21, 2025
@lucafedeli88 lucafedeli88 requested a review from EZoni January 21, 2025 12:15
Copy link
Member

@dpgrote dpgrote left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@EZoni EZoni self-assigned this Jan 21, 2025
@EZoni EZoni merged commit d7b195f into ECP-WarpX:development Jan 21, 2025
37 checks passed
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.

3 participants