Skip to content

Relationship between ParticleTile::resize() and particles.tile_size ? #2592

Answered by atmyers
n8xm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Nathan,

You are correct. particles.tile_size is in terms of number of grid cells and controls the number of ParticleTiles per grid. ParticleTile::resize() adjusts the lengths of the AoS and SoA data structures on a given ParticleTile in terms of the number of particles. A common use for ParticleTile::resize() would be to allocate space for some number of particles on a tile, then fill in the data for each particle.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by n8xm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants