Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 8, 2023
1 parent bd060f1 commit 2496779
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Particle/ParticleTile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void make_ParticleTileData(py::module &m) {
SuperParticleType const value) { pdt.setSuperParticle(value, v); })
.def("__getitem__",
[](ParticleTileDataType &pdt, int const v) { return pdt.getSuperParticle(v); })

;
}

Expand Down Expand Up @@ -84,11 +84,11 @@ void make_ParticleTile(py::module &m, std::string allocstr)
.def("setNumNeighbors", &ParticleTileType::setNumNeighbors)
.def("getNumNeighbors", &ParticleTileType::getNumNeighbors)
.def("resize", &ParticleTileType::resize)

.def("push_back", [](ParticleTileType& ptile, const ParticleType &p){ ptile.push_back(p);})
// .def("push_back", py::overload_cast<const ParticleType&>(&ParticleTileType::push_back), "Add one particle to this tile.")
// .def("push_back", py::overload_cast<const SuperParticleType&>(&ParticleTileType::push_back), "Add one particle to this tile.")

.def("push_back", [](ParticleTileType& ptile, const SuperParticleType &p) {ptile.push_back(p);})
.def("push_back_real", [](ParticleTileType& ptile, int comp, ParticleReal v) {ptile.push_back_real(comp, v);})
.def("push_back_real", [](ParticleTileType& ptile,
Expand Down

0 comments on commit 2496779

Please sign in to comment.