Skip to content

Integration of Constants into AoSoA Arrays: Seeking Guidance on Approach #750

Open
@dineshadepu

Description

@dineshadepu

Hi all,

Is there a way to add constants to the AoSoA array? Currently, when creating an AoSoA, we assign a property to each particle. However, I have a few properties that apply to the entire group of particles and have a length of 3, such as the center of mass. If these constants were stored in the AoSoA and passed around to functions, it would simplify the computation of interactions among the particles using these constants. Otherwise, I have to create these arrays separately on the GPU and pass them to the function for computing interactions.

Does my approach seem sensible? Or is passing these arrays separately a more idiomatic way to approach this in Cabana?

Thank you very much for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions