Skip to content

Commit 49c917f

Browse files
authored
Fix pc.size (#503)
Ooopsi, forgot to set first parameter. #502
1 parent 8f4b55e commit 49c917f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Particle/ParticleContainer.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ void make_ParticleContainer_and_Iterators (py::module &m, std::string allocstr)
324324
// Long TotalNumberOfParticles (bool only_valid=true, bool only_local=false) const;
325325
.def("number_of_particles",
326326
[](ParticleContainerType const & pc, bool only_local){
327-
return pc.TotalNumberOfParticles(only_local);
327+
return pc.TotalNumberOfParticles(true, only_local);
328328
},
329329
py::arg("only_local")=false,
330330
"Return the number of valid particles on all MPI ranks, unless only_local is specified."
@@ -335,7 +335,7 @@ void make_ParticleContainer_and_Iterators (py::module &m, std::string allocstr)
335335
)
336336
.def_property_readonly("size",
337337
[](ParticleContainerType const & pc){
338-
return pc.TotalNumberOfParticles(false);
338+
return pc.TotalNumberOfParticles(true, false);
339339
},
340340
"Return the number of valid particles on all MPI ranks"
341341
)

0 commit comments

Comments
 (0)