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

Do not overwrite the time-step information on reception of xv,rho or gparts.

parent 73f55223
No related branches found
No related tags found
1 merge request!433Correct wrapping of multipoles in FFT task
......@@ -4312,7 +4312,8 @@ void engine_init_particles(struct engine *e, int flag_entropy_ICs,
if (e->verbose) message("took %.3f %s.", e->wallclock_time, clocks_getunit());
}
integertime_t *address = 0;
integertime_t *address_hydro = 0;
integertime_t *address_gravity = 0;
/**
* @brief Let the #engine loose to compute the forces.
......@@ -4360,17 +4361,18 @@ void engine_step(struct engine *e) {
engine_print_task_counts(e);
space_print_cells(e->s);
/* /\* Register the time-step information *\/ */
/* if(e->step == 3) { */
/* for(int i = 0; i< e->s->nr_cells; ++i) */
/* if(&e->s->cells_top[i] - e->s->cells_top == 12) { */
/* message("Found cell!"); */
/* address = &e->s->cells_top[i].ti_end_min; */
/* message("address: %p time_end=%lld", address,
* e->s->cells_top[i].ti_end_min); */
/* } */
/* } */
/* Register the time-step information */
if(e->step == 3) {
for(int i = 0; i< e->s->nr_cells; ++i)
if(&e->s->cells_top[i] - e->s->cells_top == 12) {
message("Found cell!");
address_hydro = &e->s->cells_top[i].ti_hydro_end_min;
address_gravity = &e->s->cells_top[i].ti_gravity_end_min;
message("address: %p time_end=%lld", address_hydro,
e->s->cells_top[i].ti_hydro_end_min);
}
}
#ifdef WITH_MPI
/* Repartition the space amongst the nodes? */
......
......@@ -1645,8 +1645,8 @@ void runner_do_recv_part(struct runner *r, struct cell *c, int clear_sorts,
#endif
/* ... and store. */
c->ti_hydro_end_min = ti_hydro_end_min;
c->ti_hydro_end_max = ti_hydro_end_max;
//c->ti_hydro_end_min = ti_hydro_end_min;
//c->ti_hydro_end_max = ti_hydro_end_max;
c->ti_old_part = ti_current;
c->h_max = h_max;
......@@ -1725,8 +1725,8 @@ void runner_do_recv_gpart(struct runner *r, struct cell *c, int timer) {
#endif
/* ... and store. */
c->ti_gravity_end_min = ti_gravity_end_min;
c->ti_gravity_end_max = ti_gravity_end_max;
//c->ti_gravity_end_min = ti_gravity_end_min;
//c->ti_gravity_end_max = ti_gravity_end_max;
c->ti_old_gpart = ti_current;
if (timer) TIMER_TOC(timer_dorecv_gpart);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment