Commit d2338a7a authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

set the timestep of foreign particles to FLT_MAX to enforce one-sided interactions.


Former-commit-id: b0ae7cf35eb8a6ff0f7c5170659d478f1bf450f6
parent a59ef0c6
......@@ -1067,6 +1067,8 @@ void *runner_main ( void *data ) {
struct scheduler *sched = &e->sched;
struct task *t = NULL;
struct cell *ci, *cj, *super;
struct part *parts;
int k, nr_parts;
/* Main loop. */
while ( 1 ) {
......@@ -1163,6 +1165,11 @@ void *runner_main ( void *data ) {
break;
case task_type_recv_xv:
case task_type_recv_rho:
parts = ci->parts;
nr_parts = ci->count;
for ( k = 0 ; k < nr_parts ; k++ )
parts[k].dt = FLT_MAX;
ci->dt_min = ci->dt_max = FLT_MAX;
break;
default:
error( "Unknown task type." );
......
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