From 2b875cd0813c18469212b07bfc472eaabbf441eb Mon Sep 17 00:00:00 2001 From: James Willis <james.s.willis@durham.ac.uk> Date: Mon, 31 Jul 2017 20:10:42 +0100 Subject: [PATCH] Make sure that test passes even when vectorisation is disabled. --- tests/testInteractions.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/testInteractions.c b/tests/testInteractions.c index d08bbbaaeb..21ddf7531f 100644 --- a/tests/testInteractions.c +++ b/tests/testInteractions.c @@ -409,6 +409,11 @@ void test_interactions(struct part test_part, struct part *parts, size_t count, dump_indv_particle_fields(vec_filename, piq[0]); for (size_t i = 0; i < count; i++) dump_indv_particle_fields(vec_filename, pjq[i]); +#else + /* If vectorisation is disabled output serial result to vector file so that test passes. */ + dump_indv_particle_fields(vec_filename, &pi_serial); + for (size_t i = 0; i < count; i++) + dump_indv_particle_fields(vec_filename, &pj_serial[i]); #endif #ifdef WITH_VECTORIZATION -- GitLab