Skip to content

What is a ParticleTile, and what is its relationship to the do_tiling flag and to the tiles of a MultiFab? #2497

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

You must be logged in to vote

This sentence:

If tiling is turned off, then every grid has its own Array-of-Structs and Struct-of-Arrays... When tiling is enabled, then each tile gets its own Struct-of-Arrays and Array-of-Structs instead.

is wrong, or at least misleading. The underlying data structure always stores some number of ParticleTile objects per grid and level. When do_tiling = 0, there is always exactly one tile per grid, but the object that gets returned by the [] operator of ParticleLevel is still a ParticleTile. When do_tiling = 1, each grid can have multiple ParticleTileobjects, depending on thetile_size. Setting do_tiling = 0is equivalent to setting thetile_size` to be very large in each direction.

To …

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