Skip to content

Commit

Permalink
Merge pull request #732 from streeve/fixup_resize_plist
Browse files Browse the repository at this point in the history
Add resize to particle list
  • Loading branch information
streeve authored Jan 17, 2024
2 parents 93deaba + 808f7b5 commit 9ef42d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/Cabana_ParticleList.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit 9ef42d2

Please sign in to comment.