From c91563b797ca1be50d10c3c1f586d6e50aa6b68d Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 10 May 2021 03:37:20 -0400 Subject: [PATCH] avoid uninitialized data issues detected by valgrind --- src/REPLICA/neb.cpp | 1 + src/REPLICA/tad.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/REPLICA/neb.cpp b/src/REPLICA/neb.cpp index 295e97dee8..3914e2b7d0 100644 --- a/src/REPLICA/neb.cpp +++ b/src/REPLICA/neb.cpp @@ -59,6 +59,7 @@ NEB::NEB(LAMMPS *lmp, double etol_in, double ftol_in, int n1steps_in, n1steps = n1steps_in; n2steps = n2steps_in; nevery = nevery_in; + verbose = false; // replica info diff --git a/src/REPLICA/tad.cpp b/src/REPLICA/tad.cpp index a849e7a242..f9ea044757 100644 --- a/src/REPLICA/tad.cpp +++ b/src/REPLICA/tad.cpp @@ -43,7 +43,10 @@ using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ -TAD::TAD(LAMMPS *lmp) : Command(lmp) {} +TAD::TAD(LAMMPS *lmp) : Command(lmp) +{ + deltconf = deltstop = deltfirst = 0.0; +} /* ---------------------------------------------------------------------- */