Unverified Commit e083f38c authored by Axel Kohlmeyer's avatar Axel Kohlmeyer Committed by GitHub
Browse files

Merge pull request #1892 from sef43/master

temper timeout synchronization fix
parents 958d5ca0 f1ad4ed6
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -219,7 +219,17 @@ 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) {
      timer->force_timeout();
      break;
    }

    // compute PE
    // notify compute it will be called at next swap
+11 −1
Original line number Diff line number Diff line
@@ -241,7 +241,17 @@ void TemperGrem::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) {
      timer->force_timeout();
      break;
    }

    // compute PE
    // notify compute it will be called at next swap
+11 −1
Original line number Diff line number Diff line
@@ -220,7 +220,17 @@ void TemperNPT::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) {
      timer->force_timeout();
      break;
    }

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