From 89d7e34540e16bd4ae7fddb56521e1e5fe3c8adc Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 10 Jul 2021 10:53:36 -0400 Subject: [PATCH] destructor in polymorph base class should be virtual --- src/atom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atom.h b/src/atom.h index 5d96be67bf..c7273e1ff5 100644 --- a/src/atom.h +++ b/src/atom.h @@ -275,7 +275,7 @@ class Atom : protected Pointers { // functions Atom(class LAMMPS *); - ~Atom(); + virtual ~Atom(); void settings(class Atom *); void peratom_create();