Skip to content

Commit 7f3d297

Browse files
committed
Updated Add Component APIs
1 parent f329e60 commit 7f3d297

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/Particle/ParticleContainer.H

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,6 @@ void make_ParticleContainer_and_Iterators (py::module &m, std::string allocstr)
211211
.def("add_int_comp", &ParticleContainerType::template AddIntComp<bool>,
212212
py::arg("communicate")=true, "add a new runtime component with type Int")
213213

214-
.def("resize_runtime_real_comp", &ParticleContainerType::ResizeRuntimeRealComp,
215-
py::arg("new_size"), py::arg("communicate"),
216-
"Resize the Real runtime components (SoA)")
217-
.def("resize_runtime_int_comp", &ParticleContainerType::ResizeRuntimeIntComp,
218-
py::arg("new_size"), py::arg("communicate"),
219-
"Resize the Int runtime components (SoA)")
220-
221214
.def_property_readonly("finest_level", &ParticleContainerBase::finestLevel)
222215

223216
// ParticleContainer ( const ParticleContainer &) = delete;

tests/test_particleContainer.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ def particle_container(Npart, std_geometry, distmap, boxarr, std_real_box):
5252
pc.add_int_comp(True)
5353
pc.add_int_comp(True)
5454

55-
# can be removed after
56-
# https://github.com/AMReX-Codes/amrex/pull/3615
57-
pc.resize_runtime_real_comp(1, True)
58-
pc.resize_runtime_int_comp(2, True)
59-
6055
# assign some values to runtime components
6156
for lvl in range(pc.finest_level + 1):
6257
for pti in pc.iterator(pc, level=lvl):
@@ -83,11 +78,6 @@ def soa_particle_container(Npart, std_geometry, distmap, boxarr, std_real_box):
8378
pc.add_int_comp(True)
8479
pc.add_int_comp(True)
8580

86-
# can be removed after
87-
# https://github.com/AMReX-Codes/amrex/pull/3615
88-
pc.resize_runtime_real_comp(1, True)
89-
pc.resize_runtime_int_comp(2, True)
90-
9181
# assign some values to runtime components
9282
for lvl in range(pc.finest_level + 1):
9383
for pti in pc.iterator(pc, level=lvl):

0 commit comments

Comments
 (0)