diff --git a/src/integrate.cpp b/src/integrate.cpp index 1d50b13376..08300a8d77 100644 --- a/src/integrate.cpp +++ b/src/integrate.cpp @@ -107,7 +107,8 @@ void Integrate::ev_set(bigint ntimestep) flag = 0; int eflag_global = 0; - for (auto &icompute : elist_global) icompute->matchstep(ntimestep); + for (auto &icompute : elist_global) + if (icompute->matchstep(ntimestep)) flag = 1; if (flag) eflag_global = ENERGY_GLOBAL; flag = 0;