From 568199e50d43c7575f75c949eb9faeef333f181c Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 25 Aug 2023 21:17:11 -0400 Subject: [PATCH] must initialize force style pointers to null --- src/force.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/force.cpp b/src/force.cpp index a135be8d69..14d48d1a73 100644 --- a/src/force.cpp +++ b/src/force.cpp @@ -45,7 +45,11 @@ template static S *style_creator(LAMMPS *lmp) /* ---------------------------------------------------------------------- */ -Force::Force(LAMMPS *lmp) : Pointers(lmp) +Force::Force(LAMMPS *lmp) : + Pointers(lmp), pair(nullptr), pair_style(nullptr), pair_restart(nullptr), bond(nullptr), + bond_style(nullptr), angle(nullptr), angle_style(nullptr), dihedral(nullptr), + dihedral_style(nullptr), improper(nullptr), improper_style(nullptr), kspace(nullptr), + kspace_style(nullptr) { newton = newton_pair = newton_bond = 1;