Skip to content

Commit

Permalink
Anticipate new AddReal/IntComp Overloads
Browse files Browse the repository at this point in the history
Specialize for current arguments for now.
  • Loading branch information
ax3l committed Sep 23, 2024
1 parent 41c856b commit 18c240b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Particle/ParticleContainer.H
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ void make_ParticleContainer_and_Iterators (py::module &m, std::string allocstr)
.def_property_readonly("byte_spread", &ParticleContainerType::ByteSpread)

// runtime components
.def("add_real_comp", &ParticleContainerType::template AddRealComp<bool>,
.def("add_real_comp", py::overload_cast<bool>(&ParticleContainerType::template AddRealComp<bool>),
py::arg("communicate")=true, "add a new runtime component with type Real")
.def("add_int_comp", &ParticleContainerType::template AddIntComp<bool>,
.def("add_int_comp", py::overload_cast<bool>(&ParticleContainerType::template AddIntComp<bool>),
py::arg("communicate")=true, "add a new runtime component with type Int")

.def_property_readonly("finest_level", &ParticleContainerBase::finestLevel)
Expand Down

0 comments on commit 18c240b

Please sign in to comment.