Skip to content
Snippets Groups Projects
Commit 8e34487c authored by James Willis's avatar James Willis
Browse files

Move acceleration before position to get more required properties in a cache line.

parent 38f96f9f
Branches
Tags
1 merge request!480Dopair subset vec
......@@ -62,15 +62,15 @@ struct part {
/* Pointer to corresponding gravity part. */
struct gpart* gpart;
/* Particle acceleration. */
float a_hydro[3];
/* Particle position. */
double x[3];
/* Particle predicted velocity. */
float v[3];
/* Particle acceleration. */
float a_hydro[3];
/* Particle cutoff radius. */
float h;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment