Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
0c82d783
Commit
0c82d783
authored
Dec 13, 2012
by
Pedro Gonnet
Browse files
re-arrange particle data.
Former-commit-id: f2f9d3c17951e66890a8ac707e9410ce42d9a8fd
parent
fda05e36
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/part.h
View file @
0c82d783
...
...
@@ -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
)));
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment