From 785e1ca9f5bdead667cd13c9ea849bc0b8c1b8da Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 24 Feb 2021 20:41:53 -0500 Subject: [PATCH] add missing writedata=1 setting in constructor --- src/dihedral_zero.cpp | 5 ++++- src/improper_zero.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/dihedral_zero.cpp b/src/dihedral_zero.cpp index 63ac52a224..ab4c12c226 100644 --- a/src/dihedral_zero.cpp +++ b/src/dihedral_zero.cpp @@ -27,7 +27,10 @@ using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ -DihedralZero::DihedralZero(LAMMPS *lmp) : Dihedral(lmp), coeffflag(1) {} +DihedralZero::DihedralZero(LAMMPS *lmp) : Dihedral(lmp), coeffflag(1) +{ + writedata = 1; +} /* ---------------------------------------------------------------------- */ diff --git a/src/improper_zero.cpp b/src/improper_zero.cpp index d9f36b8398..f177ff10d2 100644 --- a/src/improper_zero.cpp +++ b/src/improper_zero.cpp @@ -27,7 +27,10 @@ using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ -ImproperZero::ImproperZero(LAMMPS *lmp) : Improper(lmp), coeffflag(1) {} +ImproperZero::ImproperZero(LAMMPS *lmp) : Improper(lmp), coeffflag(1) +{ + writedata = 1; +} /* ---------------------------------------------------------------------- */