fix bug with addstep_compute skipping on first step

This commit is contained in:
Axel Kohlmeyer
2025-03-27 18:28:06 -04:00
parent fc78806bc7
commit c9be07df9c

View File

@ -1431,7 +1431,7 @@ void Modify::addstep_compute(bigint newstep)
}
for (int icompute = 0; icompute < n_timeflag; icompute++)
if (compute[list_timeflag[icompute]]->invoked_flag)
if (compute[list_timeflag[icompute]]->invoked_flag >=0)
compute[list_timeflag[icompute]]->addstep(newstep);
}