Commit 0c82d783 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

re-arrange particle data.


Former-commit-id: f2f9d3c17951e66890a8ac707e9410ce42d9a8fd
parent fda05e36
......@@ -42,21 +42,9 @@ struct cpart {
/* Data of a single particle. */
struct part {
/* Particle position. */
double x[3];
/* Particle cutoff radius. */
float h;
/* Particle time-step. */
float dt;
/* Particle mass. */
float mass;
/* Particle ID. */
unsigned long long id;
/* Particle velocity. */
float v[3];
......@@ -72,9 +60,6 @@ struct part {
/* Aggregate quantities. */
float POrho2;
/* Particle internal energy. */
float u;
/* Change in particle energy over time. */
float u_dt;
......@@ -89,6 +74,21 @@ struct part {
float wcount;
float wcount_dh;
/* Particle internal energy. */
float u;
/* Particle ID. */
unsigned long long id;
/* Particle position. */
double x[3];
/* Particle cutoff radius. */
float h;
/* Particle time-step. */
float dt;
} __attribute__((aligned (32)));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment