diff --git a/src/REPLICA/temper.cpp b/src/REPLICA/temper.cpp index 00ca062ecc..1128f5ff41 100644 --- a/src/REPLICA/temper.cpp +++ b/src/REPLICA/temper.cpp @@ -219,7 +219,15 @@ void Temper::command(int narg, char **arg) timer->init_timeout(); update->integrate->run(nevery); - if (timer->is_timeout()) break; + + // check for timeout across all procs + int my_timeout=0; + int any_timeout=0; + if (timer->is_timeout()){ + my_timeout=1; + } + MPI_Allreduce(&my_timeout, &any_timeout, 1, MPI_INT, MPI_SUM, universe->uworld); + if (any_timeout) break; // compute PE // notify compute it will be called at next swap