Update more core class destructors

This commit is contained in:
Richard Berger
2022-01-19 13:26:48 -05:00
parent e283bfa1fa
commit b8d4030983
19 changed files with 19 additions and 19 deletions

View File

@ -43,7 +43,7 @@ class Angle : protected Pointers {
int copymode;
Angle(class LAMMPS *);
virtual ~Angle();
~Angle() override;
virtual void init();
virtual void compute(int, int) = 0;
virtual void settings(int, char **) {}

View File

@ -284,7 +284,7 @@ class Atom : protected Pointers {
// functions
Atom(class LAMMPS *);
virtual ~Atom();
~Atom() override;
void settings(class Atom *);
void peratom_create();

View File

@ -68,7 +68,7 @@ class AtomVec : protected Pointers {
// methods
AtomVec(class LAMMPS *);
virtual ~AtomVec();
~AtomVec() override;
void store_args(int, char **);
virtual void process_args(int, char **);

View File

@ -39,7 +39,7 @@ class Bond : protected Pointers {
int copymode;
Bond(class LAMMPS *);
virtual ~Bond();
~Bond() override;
virtual void init();
virtual void init_style() {}
virtual void compute(int, int) = 0;

View File

@ -104,7 +104,7 @@ class Compute : protected Pointers {
int copymode, kokkosable;
Compute(class LAMMPS *, int, char **);
virtual ~Compute();
~Compute() override;
void modify_params(int, char **);
void reset_extra_dof();

View File

@ -43,7 +43,7 @@ class Dihedral : protected Pointers {
int copymode;
Dihedral(class LAMMPS *);
virtual ~Dihedral();
~Dihedral() override;
virtual void init();
virtual void init_style() {}
virtual void compute(int, int) = 0;

View File

@ -130,7 +130,7 @@ class Fix : protected Pointers {
unsigned int datamask_read, datamask_modify;
Fix(class LAMMPS *, int, char **);
virtual ~Fix();
~Fix() override;
void modify_params(int, char **);
virtual int setmask() = 0;

View File

@ -117,7 +117,7 @@ class Force : protected Pointers {
int special_extra; // extra space for added bonds
Force(class LAMMPS *);
~Force();
~Force() override;
void init();
void setup();

View File

@ -43,7 +43,7 @@ class Improper : protected Pointers {
int copymode;
Improper(class LAMMPS *);
virtual ~Improper();
~Improper() override;
virtual void init();
virtual void init_style() {}
virtual void compute(int, int) = 0;

View File

@ -21,7 +21,7 @@ namespace LAMMPS_NS {
class Integrate : protected Pointers {
public:
Integrate(class LAMMPS *, int, char **);
virtual ~Integrate();
~Integrate() override;
virtual void init();
virtual void setup(int flag) = 0;
virtual void setup_minimal(int) = 0;

View File

@ -100,7 +100,7 @@ class KSpace : protected Pointers {
double splittol; // tolerance for when to truncate splitting
KSpace(class LAMMPS *);
virtual ~KSpace();
~KSpace() override;
void two_charge();
void triclinic_check();
void modify_params(int, char **);

View File

@ -53,7 +53,7 @@ class Modify : protected Pointers {
Compute **compute; // list of computes
Modify(class LAMMPS *);
virtual ~Modify();
~Modify() override;
virtual void init();
virtual void setup(int);
virtual void setup_pre_exchange();

View File

@ -102,7 +102,7 @@ class NeighList : protected Pointers {
// methods
NeighList(class LAMMPS *);
virtual ~NeighList();
~NeighList() override;
void post_constructor(class NeighRequest *);
void setup_pages(int, int); // setup page data structures
void grow(int, int); // grow all data structs

View File

@ -117,7 +117,7 @@ class Neighbor : protected Pointers {
// public methods
Neighbor(class LAMMPS *);
virtual ~Neighbor();
~Neighbor() override;
virtual void init();
int request(void *, int instance = 0);
int decide(); // decide whether to build or not

View File

@ -71,7 +71,7 @@ class Output : protected Pointers {
DumpCreatorMap *dump_map;
Output(class LAMMPS *);
~Output();
~Output() override;
void init();
void setup(int memflag = 1); // initial output before run/min
void write(bigint); // output for current timestep

View File

@ -123,7 +123,7 @@ class Pair : protected Pointers {
int kokkosable; // 1 if Kokkos pair
Pair(class LAMMPS *);
virtual ~Pair();
~Pair() override;
// top-level Pair methods

View File

@ -34,7 +34,7 @@ class Thermo : protected Pointers {
enum { INT, FLOAT, BIGINT };
Thermo(class LAMMPS *, int, char **);
~Thermo();
~Thermo() override;
void init();
bigint lost_check();
void modify_params(int, char **);

View File

@ -44,7 +44,7 @@ class Timer : protected Pointers {
enum tlevel { OFF = 0, LOOP, NORMAL, FULL };
Timer(class LAMMPS *);
~Timer(){};
~Timer() override = default;
void init();
// inline function to reduce overhead if we want no detailed timings

View File

@ -37,7 +37,7 @@ class Universe : protected Pointers {
// proc uni2orig[I] in original communicator
Universe(class LAMMPS *, MPI_Comm);
~Universe();
~Universe() override;
void reorder(char *, char *);
void add_world(char *);
int consistent();