diff --git a/src/runner_doiact.h b/src/runner_doiact.h index 57bf4387eb3bccebf32b6e8a507f86a39483a2e4..517edad63abdeee4a3ce0170d8808254d03aeb12 100644 --- a/src/runner_doiact.h +++ b/src/runner_doiact.h @@ -1815,7 +1815,7 @@ void DOSUB1 ( struct runner *r , struct cell *ci , struct cell *cj , int sid ) { } /* Otherwise, compute the pair directly. */ - else if ( ci->dt_min < dt_step || cj->dt_min < dt_step ) { + else if ( ci->dt_min <= dt_step || cj->dt_min <= dt_step ) { /* Do any of the cells need to be sorted first? */ if ( !(ci->sorted & (1 << sid) ) ) @@ -2095,7 +2095,7 @@ void DOSUB2 ( struct runner *r , struct cell *ci , struct cell *cj , int sid ) { } /* Otherwise, compute the pair directly. */ - else if ( ci->dt_min < dt_step || cj->dt_min < dt_step ) { + else if ( ci->dt_min <= dt_step || cj->dt_min <= dt_step ) { /* Do any of the cells need to be sorted first? */ if ( !(ci->sorted & (1 << sid) ) )