From 1a388cc144c23db0db74218c59ec0073f18d6eb6 Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <pedro.gonnet@durham.ac.uk> Date: Wed, 28 Aug 2013 14:46:47 +0000 Subject: [PATCH] be numerically consistent. Former-commit-id: 071fb3279b08c17b70077bb10a97e9d14c054673 --- src/engine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine.c b/src/engine.c index 559106bca6..1333e2a614 100644 --- a/src/engine.c +++ b/src/engine.c @@ -100,7 +100,7 @@ void engine_redistribute ( struct engine *e ) { getting the counts. */ int *counts, *dest; struct part *parts = s->parts; - float ih[3]; + double ih[3]; ih[0] = s->ih[0]; ih[1] = s->ih[1]; ih[2] = s->ih[2]; if ( ( counts = (int *)malloc( sizeof(int) * nr_nodes * nr_nodes ) ) == NULL || ( dest = (int *)malloc( sizeof(int) * s->nr_parts ) ) == NULL ) @@ -156,7 +156,7 @@ void engine_redistribute ( struct engine *e ) { } } - /* Wait for all the recvs to tumble in. */ + /* Wait for all the sends and recvs to tumble in. */ if ( MPI_Waitall( 4*nr_nodes , reqs , MPI_STATUSES_IGNORE ) != MPI_SUCCESS ) error( "Failed during waitall for part data." ); -- GitLab