NbodyGradient.jl icon indicating copy to clipboard operation
NbodyGradient.jl copied to clipboard

Change order of derivative arrays

Open langfzac opened this issue 3 years ago • 1 comments

The arrays of derivatives computed by NBG are ordered differently than the initial conditions. Namely, the masses come after the coordinates in the derivative arrays, but before the coordinates in the initial conditions.

@ericagol Do you have a preference for which direction the change occurs? Either will require some work and break existing scripts.

$[x_i, y_i, z_i, vx_i, vy_i, vz_i, m_i] \leftrightarrow [m_i, x_i, y_i, z_i, vx_i, vy_i, vz_i]$

langfzac avatar Jun 24 '22 22:06 langfzac

@langfzac I like having the masses come first.

ericagol avatar Jun 24 '22 22:06 ericagol