From 1809115c6474c85ad422c55168a4e08c07784eef Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 20 Aug 2024 00:12:29 -0400 Subject: [PATCH] avoid uninitialized access to next_thermo and next_restart from reset_dt() --- src/output.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output.cpp b/src/output.cpp index f6da696293..60d84e715d 100644 --- a/src/output.cpp +++ b/src/output.cpp @@ -77,7 +77,7 @@ Output::Output(LAMMPS *lmp) : Pointers(lmp) ndump = 0; max_dump = 0; any_time_dumps = 0; - next_dump_any = next_time_dump_any = MAXBIGINT; + next_thermo = next_restart = next_dump_any = next_time_dump_any = MAXBIGINT; mode_dump = nullptr; every_dump = nullptr; every_time_dump = nullptr;