Unverified Commit f1ad4ed6 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

update the internal timeout clock across replica when we stop parallel tempering

parent c3fc680c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -226,7 +226,10 @@ void Temper::command(int narg, char **arg)
    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;
    if (any_timeout) {
      timer->force_timeout();
      break;
    }

    // compute PE
    // notify compute it will be called at next swap
+4 −1
Original line number Diff line number Diff line
@@ -248,7 +248,10 @@ void TemperGrem::command(int narg, char **arg)
    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;
    if (any_timeout) {
      timer->force_timeout();
      break;
    }

    // compute PE
    // notify compute it will be called at next swap
+4 −1
Original line number Diff line number Diff line
@@ -227,7 +227,10 @@ void TemperNPT::command(int narg, char **arg)
    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;
    if (any_timeout) {
      timer->force_timeout();
      break;
    }

    // compute PE
    // notify compute it will be called at next swap