Closed ghost closed 5 years ago
I'd highly recommend changing your data layout. You typically want to avoid Vector-of-struct patterns and rather have Struct-of-vector in performance critical situations, as this is usually a more cache-friendly memory layout.
On a side note, also vector
Hi,
I'm working on a nbody simulation code want to integrate/do_step with my system. My problem is that my data is not arranged in a suited structure for odeint, as I take it from solar system example. For example, lets say I have something like:
The problem is the Symplectic integratetors accept the coordinates and momenta to be separated in different containers then the step would be:
Is it possible in odeint to integrate from other structures/layout? How can I do integration considering how my data is organized?