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: move AllocateCenteringCoefficients to anonymous namespace in WarpX.cpp #5666

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

Conversation

lucafedeli88
Copy link
Member

@lucafedeli88 lucafedeli88 commented Feb 13, 2025

AllocateCenteringCoefficients is a pure function used only inside WarpX.cpp. This PR moves it from a private member function of the WarpX class to an anonymous namespace inside WarpX.cpp. The PR also makes the function more compact.
This is done to simplify the WarpX.H header.

@lucafedeli88 lucafedeli88 added the cleaning Clean code, improve readability label Feb 13, 2025
@ax3l ax3l requested a review from EZoni February 19, 2025 00:48
@EZoni
Copy link
Member

EZoni commented Feb 19, 2025

Thanks, @lucafedeli88! Please note that there is one conflict to resolve.

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