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

MacroscopicEvolveE: pass macroscopic_solver_algo to MacroscopicEvolveE as a parameter instead of using WarpX::macroscopic_solver_algo #5770

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

Conversation

lucafedeli88
Copy link
Member

@lucafedeli88 lucafedeli88 commented Mar 17, 2025

With this PR macroscopic_solver_algo is passed to MacroscopicEvolveE as an argument, instead of directly accessing the static variable of the WarpX class WarpX::macroscopic_solver_algo .

Note that after this change macroscopic_solver_algo does not need to be static. Therefore, it is renamed m_macroscopic_solver_algo and it is changed into a private member variable of the WarpX class.

@lucafedeli88 lucafedeli88 added the cleaning Clean code, improve readability label Mar 17, 2025
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