From b150ea1ba38aa01da86a57dacd97316c80252d31 Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <pedro.gonnet@durham.ac.uk> Date: Wed, 12 Dec 2012 22:26:14 +0000 Subject: [PATCH] remove hard-coded vector length. Former-commit-id: f3728118e343a5901eacba9709494ca28065dd1c --- src/runner_iact.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner_iact.h b/src/runner_iact.h index 99c869f718..750f44d02a 100644 --- a/src/runner_iact.h +++ b/src/runner_iact.h @@ -485,7 +485,7 @@ __attribute__ ((always_inline)) INLINE static void runner_iact_vec_force ( float pjh_dt.v = mi.v / pirho.v * dvdr.v * wj_dr.v; /* Store the forces back on the particles. */ - for ( k = 0 ; k < 4 ; k++ ) { + for ( k = 0 ; k < VEC_SIZE ; k++ ) { pi[k]->u_dt += piu_dt.f[k]; pj[k]->u_dt += pju_dt.f[k]; pi[k]->h_dt += pih_dt.f[k]; @@ -647,7 +647,7 @@ __attribute__ ((always_inline)) INLINE static void runner_iact_nonsym_vec_force pih_dt.v = mj.v / pjrho.v * dvdr.v * wi_dr.v; /* Store the forces back on the particles. */ - for ( k = 0 ; k < 4 ; k++ ) { + for ( k = 0 ; k < VEC_SIZE ; k++ ) { pi[k]->u_dt += piu_dt.f[k]; pi[k]->h_dt += pih_dt.f[k]; for ( j = 0 ; j < 3 ; j++ ) -- GitLab