must initialize copymode in base class

This commit is contained in:
Axel Kohlmeyer
2024-11-15 06:24:29 -05:00
parent 0f9f80ad45
commit 74fea8ae08

View File

@ -20,7 +20,7 @@ namespace LAMMPS_NS {
class Command : protected Pointers {
public:
Command(class LAMMPS *lmp) : Pointers(lmp) {};
Command(class LAMMPS *lmp) : Pointers(lmp), copymode(0) {};
virtual void command(int, char **) = 0;
protected: