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
15bc59f4
Commit
15bc59f4
authored
Oct 20, 2015
by
Matthieu Schaller
Browse files
New drift and kick tasks in runner.c
parent
ed6c9011
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/part.h
View file @
15bc59f4
...
...
@@ -32,8 +32,8 @@ struct xpart {
/* Old position, at last tree rebuild. */
double
x_old
[
3
];
/* Velocity at the
half-
step. */
float
v_
hdt
[
3
];
/* Velocity at the
last full
step. */
float
v_
full
[
3
];
/* Entropy at the half-step. */
float
u_hdt
;
...
...
src/runner.c
View file @
15bc59f4
This diff is collapsed.
Click to expand it.
src/space.c
View file @
15bc59f4
...
...
@@ -1123,9 +1123,9 @@ void space_init(struct space *s, double dim[3], struct part *parts, int N,
for
(
int
k
=
0
;
k
<
N
;
k
++
)
{
struct
part
*
p
=
&
parts
[
k
];
struct
xpart
*
xp
=
&
s
->
xparts
[
k
];
xp
->
v_
hdt
[
0
]
=
p
->
v
[
0
];
xp
->
v_
hdt
[
1
]
=
p
->
v
[
1
];
xp
->
v_
hdt
[
2
]
=
p
->
v
[
2
];
xp
->
v_
full
[
0
]
=
p
->
v
[
0
];
xp
->
v_
full
[
1
]
=
p
->
v
[
1
];
xp
->
v_
full
[
2
]
=
p
->
v
[
2
];
xp
->
u_hdt
=
p
->
u
;
}
...
...
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