From 18c240b7e22c7af3b104bcb76a05651ba3c768ee Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 23 Sep 2024 14:17:28 -0700 Subject: [PATCH] Anticipate new `AddReal/IntComp` Overloads Specialize for current arguments for now. --- src/Particle/ParticleContainer.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)