Skip to content
Snippets Groups Projects
Commit 15bc59f4 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

New drift and kick tasks in runner.c

parent ed6c9011
No related branches found
No related tags found
2 merge requests!136Master,!79First version of the multiple time-stepping
......@@ -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;
......
This diff is collapsed.
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment