From a17ec2a8d37d9ca62f90b49093fe10c7ba57076f Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 27 Mar 2025 18:28:06 -0400 Subject: [PATCH] fix bug with addstep_compute skipping on first step --- src/modify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modify.cpp b/src/modify.cpp index 4fd20bc74b..aa2b0cccc6 100644 --- a/src/modify.cpp +++ b/src/modify.cpp @@ -1447,7 +1447,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); }