Skip to content

Commit

Permalink
Add resize to particle list
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Jan 11, 2024
1 parent 6fd0c34 commit 808f7b5
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 808f7b5

Please sign in to comment.