Skip to content

Commit

Permalink
WarpX class: ProjectionCleanDivB no longer static (#5615)
Browse files Browse the repository at this point in the history
This PR contributes to reducing the usage of static member functions and
static variables in the WarpX class.
  • Loading branch information
lucafedeli88 authored Jan 29, 2025
1 parent 962829d commit 9f2d0f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Python/WarpX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ The physical fields in WarpX have the following naming:
py::arg("potential"),
"Sets the EB potential string and updates the function parser."
)
.def_static("run_div_cleaner",
[] () { WarpX::ProjectionCleanDivB(); },
.def("run_div_cleaner",
[] (WarpX& wx) { wx.ProjectionCleanDivB(); },
"Executes projection based divergence cleaner on loaded Bfield_fp_external."
)
.def("synchronize",
Expand Down
2 changes: 1 addition & 1 deletion Source/WarpX.H
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ public:

void ComputeDivE(amrex::MultiFab& divE, int lev);

static void ProjectionCleanDivB ();
void ProjectionCleanDivB ();

[[nodiscard]] amrex::IntVect getngEB() const { return guard_cells.ng_alloc_EB; }
[[nodiscard]] amrex::IntVect getngF() const { return guard_cells.ng_alloc_F; }
Expand Down

0 comments on commit 9f2d0f9

Please sign in to comment.