Skip to content

Commit

Permalink
Remove an unnecessary call to WarpX::GetInstance() (#5540)
Browse files Browse the repository at this point in the history
This PR removes an unnecessary call to ` WarpX::GetInstance()` from a
member function of the `WarpX` class.
  • Loading branch information
lucafedeli88 authored Jan 8, 2025
1 parent 1bff387 commit 1813753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Parallelization/WarpXRegrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ WarpX::ComputeCostsHeuristic (amrex::Vector<std::unique_ptr<amrex::LayoutData<am

for (int lev = 0; lev <= finest_level; ++lev)
{
const auto & mypc_ref = GetInstance().GetPartContainer();
const auto & mypc_ref = GetPartContainer();
const auto nSpecies = mypc_ref.nSpecies();

// Species loop
Expand Down

0 comments on commit 1813753

Please sign in to comment.