diff --git a/src/Particle/ParticleContainer.H b/src/Particle/ParticleContainer.H index 45a49ef7..f820dc7f 100644 --- a/src/Particle/ParticleContainer.H +++ b/src/Particle/ParticleContainer.H @@ -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, + .def("add_real_comp", py::overload_cast(&ParticleContainerType::template AddRealComp), py::arg("communicate")=true, "add a new runtime component with type Real") - .def("add_int_comp", &ParticleContainerType::template AddIntComp, + .def("add_int_comp", py::overload_cast(&ParticleContainerType::template AddIntComp), py::arg("communicate")=true, "add a new runtime component with type Int") .def_property_readonly("finest_level", &ParticleContainerBase::finestLevel)