fix refactoring bug

This commit is contained in:
Axel Kohlmeyer
2024-01-21 14:22:41 -05:00
parent 6339dfad09
commit fd0507bded

View File

@ -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;