Skip to content

Commit

Permalink
More Docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Nov 30, 2023
1 parent 2d6e4a3 commit 227f700
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Base/PODVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void make_PODVector(py::module &m, std::string typestr, std::string allocstr)
.def(py::init<PODVector_type&>(), py::arg("other"))
.def("assign", [](PODVector_type & pv, T const & value){
pv.assign(pv.size(), value);
}, py::arg("value"))
}, py::arg("value"), "assign the same value to every element")
.def("push_back", py::overload_cast<const T&>(&PODVector_type::push_back))
.def("pop_back", &PODVector_type::pop_back)
.def("clear", &PODVector_type::clear)
Expand Down
10 changes: 6 additions & 4 deletions src/Particle/ParticleContainer.H
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,16 @@ void make_ParticleContainer_and_Iterators (py::module &m, std::string allocstr)

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

.def("resize_runtime_real_comp", &ParticleContainerType::ResizeRuntimeRealComp,
py::arg("new_size"), py::arg("communicate"))
py::arg("new_size"), py::arg("communicate"),
"Resize the Real runtime components (SoA)")
.def("resize_runtime_int_comp", &ParticleContainerType::ResizeRuntimeIntComp,
py::arg("new_size"), py::arg("communicate"))
py::arg("new_size"), py::arg("communicate"),
"Resize the Int runtime components (SoA)")

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

Expand Down

0 comments on commit 227f700

Please sign in to comment.