From 808f7b505f3e9808ef5a158cc8c2c2cf2fe8d066 Mon Sep 17 00:00:00 2001 From: Sam Reeve <6740307+streeve@users.noreply.github.com> Date: Thu, 11 Jan 2024 14:46:02 -0500 Subject: [PATCH] Add resize to particle list --- core/src/Cabana_ParticleList.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/Cabana_ParticleList.hpp b/core/src/Cabana_ParticleList.hpp index 1b7364f6b..a0aa1be67 100644 --- a/core/src/Cabana_ParticleList.hpp +++ b/core/src/Cabana_ParticleList.hpp @@ -214,6 +214,8 @@ class ParticleList //! Get the number of particles in the list. std::size_t size() const { return _aosoa.size(); } + //! Update the number of particles in the list. + void resize( const std::size_t n ) { _aosoa.resize( n ); } //! Get the AoSoA. aosoa_type& aosoa() { return _aosoa; }