Skip to content

Commit 398d5d4

Browse files
committed
Add a PC::arena Property
Writable (with getter and setter).
1 parent dac9b50 commit 398d5d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Particle/ParticleContainer.H

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ void make_ParticleContainer_and_Iterators (py::module &m, std::string allocstr)
189189
py_pc
190190
.def("make_alike", &ParticleContainerType::template make_alike<Allocator>)
191191

192+
.def_property("arena",
193+
&ParticleContainerType::arena,
194+
&ParticleContainerType::SetArena
195+
)
196+
192197
.def_property_readonly_static("is_soa_particle", [](const py::object&){return ParticleType::is_soa_particle;})
193198
.def_property_readonly_static("num_struct_real", [](const py::object&){return ParticleContainerType::NStructReal; })
194199
.def_property_readonly_static("num_struct_int", [](const py::object&){return ParticleContainerType::NStructInt; })

0 commit comments

Comments
 (0)