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

HybridPICModel : pass m_fields as an argument to InitData() to reduce reliance on WarpX::GetInstance() #5744

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

Conversation

lucafedeli88
Copy link
Member

This PR is a small step towards reducing the reliance on WarpX::GetInstance() to get access to member variables of the WarpX class.

@lucafedeli88 lucafedeli88 added the cleaning Clean code, improve readability label Mar 10, 2025
@@ -183,19 +183,19 @@ void HybridPICModel::InitData ()
m_external_current_has_time_dependence += J_ext_symbols.count("t");
}

auto & warpx = WarpX::GetInstance();
auto& warpx = WarpX::GetInstance();
Copy link
Member Author

Choose a reason for hiding this comment

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

We still need this because it is used somewhere below.

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.

1 participant