From 7f3d29756df60f568e8844f6037069bcb8ec6c0c Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 1 Apr 2024 10:00:55 -0700 Subject: [PATCH] Updated Add Component APIs --- src/Particle/ParticleContainer.H | 7 ------- tests/test_particleContainer.py | 10 ---------- 2 files changed, 17 deletions(-) diff --git a/src/Particle/ParticleContainer.H b/src/Particle/ParticleContainer.H index 5de9ff0c..c3abf899 100644 --- a/src/Particle/ParticleContainer.H +++ b/src/Particle/ParticleContainer.H @@ -211,13 +211,6 @@ void make_ParticleContainer_and_Iterators (py::module &m, std::string allocstr) .def("add_int_comp", &ParticleContainerType::template AddIntComp, 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"), - "Resize the Real runtime components (SoA)") - .def("resize_runtime_int_comp", &ParticleContainerType::ResizeRuntimeIntComp, - py::arg("new_size"), py::arg("communicate"), - "Resize the Int runtime components (SoA)") - .def_property_readonly("finest_level", &ParticleContainerBase::finestLevel) // ParticleContainer ( const ParticleContainer &) = delete; diff --git a/tests/test_particleContainer.py b/tests/test_particleContainer.py index 00dc8a53..b7e13c9a 100644 --- a/tests/test_particleContainer.py +++ b/tests/test_particleContainer.py @@ -52,11 +52,6 @@ def particle_container(Npart, std_geometry, distmap, boxarr, std_real_box): pc.add_int_comp(True) pc.add_int_comp(True) - # can be removed after - # https://github.com/AMReX-Codes/amrex/pull/3615 - pc.resize_runtime_real_comp(1, True) - pc.resize_runtime_int_comp(2, True) - # assign some values to runtime components for lvl in range(pc.finest_level + 1): for pti in pc.iterator(pc, level=lvl): @@ -83,11 +78,6 @@ def soa_particle_container(Npart, std_geometry, distmap, boxarr, std_real_box): pc.add_int_comp(True) pc.add_int_comp(True) - # can be removed after - # https://github.com/AMReX-Codes/amrex/pull/3615 - pc.resize_runtime_real_comp(1, True) - pc.resize_runtime_int_comp(2, True) - # assign some values to runtime components for lvl in range(pc.finest_level + 1): for pti in pc.iterator(pc, level=lvl):