From cb9ceccd85cd8083807bba9ebff14ecc01de77f9 Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <pedro.gonnet@durham.ac.uk> Date: Sat, 6 Apr 2013 10:37:08 +0000 Subject: [PATCH] oops, fails when all dts are 0. Former-commit-id: 3419ac166a7d7a2edcf1262b26932ff46fc875a8 --- src/runner_doiact.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner_doiact.h b/src/runner_doiact.h index 57bf4387eb..517edad63a 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) ) ) -- GitLab