Skip to content
Snippets Groups Projects
Commit 9bfafd38 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

better handling of rebuilds in multiple time steps.

Former-commit-id: 45d1d47b639e422f0b759134d9c6792e9b291d7b
parent 10381c2c
Branches
Tags
No related merge requests found
......@@ -125,7 +125,7 @@ int space_marktasks ( struct space *s ) {
t->skip = ( t->ci->dt_min > dt_step && t->cj->dt_min > dt_step );
/* Too much particle movement? */
if ( !t->skip && t->tight &&
if ( t->tight &&
( t->ci->h2dx_max > t->ci->dmin || t->cj->h2dx_max > t->cj->dmin ) )
return 1;
......@@ -1040,7 +1040,7 @@ void space_splittasks ( struct space *s ) {
/* Should this task be split-up? */
if ( ci->split && cj->split &&
ci->h_max < hi/2 && cj->h_max < hj/2 ) {
ci->h_max*space_stretch < hi/2 && cj->h_max*space_stretch < hj/2 ) {
/* Replace by a single sub-task? */
if ( space_dosub &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment