From d226f5d02c5e7189f1ef855fc7dca6b09532bfee Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 23 Feb 2020 05:03:50 -0500 Subject: [PATCH] cosmetic changes --- src/REPLICA/temper.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/REPLICA/temper.cpp b/src/REPLICA/temper.cpp index 1128f5ff41..1a6ce8d311 100644 --- a/src/REPLICA/temper.cpp +++ b/src/REPLICA/temper.cpp @@ -219,13 +219,12 @@ void Temper::command(int narg, char **arg) timer->init_timeout(); update->integrate->run(nevery); - + // check for timeout across all procs + int my_timeout=0; int any_timeout=0; - if (timer->is_timeout()){ - my_timeout=1; - } + if (timer->is_timeout()) my_timeout=1; MPI_Allreduce(&my_timeout, &any_timeout, 1, MPI_INT, MPI_SUM, universe->uworld); if (any_timeout) break;