diff --git a/src/COLVARS/group_ndx.h b/src/COLVARS/group_ndx.h index 4c1e7e93e5..c1d7c5298b 100644 --- a/src/COLVARS/group_ndx.h +++ b/src/COLVARS/group_ndx.h @@ -29,7 +29,7 @@ namespace LAMMPS_NS { class Group2Ndx : public Command { public: Group2Ndx(class LAMMPS *lmp) : Command(lmp){}; - void command(int, char **); + void command(int, char **) override; private: void write_group(FILE *, int); diff --git a/src/COLVARS/ndx_group.h b/src/COLVARS/ndx_group.h index 85831accaf..ef30f53b17 100644 --- a/src/COLVARS/ndx_group.h +++ b/src/COLVARS/ndx_group.h @@ -30,7 +30,7 @@ namespace LAMMPS_NS { class Ndx2Group : public Command { public: Ndx2Group(class LAMMPS *lmp) : Command(lmp){}; - void command(int, char **); + void command(int, char **) override; private: void create(const std::string &, const std::vector &); diff --git a/src/KIM/kim_command.h b/src/KIM/kim_command.h index 98a9420c31..25611d4b50 100644 --- a/src/KIM/kim_command.h +++ b/src/KIM/kim_command.h @@ -69,7 +69,7 @@ namespace LAMMPS_NS { class KimCommand : public Command { public: KimCommand(class LAMMPS *lmp) : Command(lmp){}; - void command(int, char **); + void command(int, char **) override; }; } // namespace LAMMPS_NS diff --git a/src/MESSAGE/message.h b/src/MESSAGE/message.h index cb86fa62e5..ff832f1145 100644 --- a/src/MESSAGE/message.h +++ b/src/MESSAGE/message.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class Message : public Command { public: Message(class LAMMPS *lmp) : Command(lmp){}; - void command(int, char **); + void command(int, char **) override; private: void quit(); diff --git a/src/MESSAGE/server.h b/src/MESSAGE/server.h index c06aaa6f12..e82ac7e8b0 100644 --- a/src/MESSAGE/server.h +++ b/src/MESSAGE/server.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class Server : public Command { public: Server(class LAMMPS *lmp) : Command(lmp){}; - void command(int, char **); + void command(int, char **) override; }; } // namespace LAMMPS_NS diff --git a/src/MESSAGE/server_md.h b/src/MESSAGE/server_md.h index e50027f0ea..bd227286b4 100644 --- a/src/MESSAGE/server_md.h +++ b/src/MESSAGE/server_md.h @@ -21,7 +21,7 @@ namespace LAMMPS_NS { class ServerMD : protected Pointers { public: ServerMD(class LAMMPS *); - ~ServerMD(); + ~ServerMD() override; void loop(); private: diff --git a/src/PHONON/dynamical_matrix.h b/src/PHONON/dynamical_matrix.h index cc70cd026e..122d158d55 100644 --- a/src/PHONON/dynamical_matrix.h +++ b/src/PHONON/dynamical_matrix.h @@ -18,8 +18,8 @@ namespace LAMMPS_NS { class DynamicalMatrix : public Command { public: DynamicalMatrix(class LAMMPS *); - virtual ~DynamicalMatrix(); - void command(int, char **); + ~DynamicalMatrix() override; + void command(int, char **) override; void setup(); protected: diff --git a/src/PHONON/third_order.h b/src/PHONON/third_order.h index fa8741cfc6..1961d52355 100644 --- a/src/PHONON/third_order.h +++ b/src/PHONON/third_order.h @@ -18,8 +18,8 @@ namespace LAMMPS_NS { class ThirdOrder : public Command { public: ThirdOrder(class LAMMPS *); - virtual ~ThirdOrder(); - void command(int, char **); + ~ThirdOrder() override; + void command(int, char **) override; void setup(); protected: diff --git a/src/PLUGIN/plugin.h b/src/PLUGIN/plugin.h index d98430bae6..cc1a3bf2dc 100644 --- a/src/PLUGIN/plugin.h +++ b/src/PLUGIN/plugin.h @@ -28,7 +28,7 @@ namespace LAMMPS_NS { class Plugin : public Command { public: Plugin(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; }; void plugin_load(const char *, LAMMPS *); diff --git a/src/REPLICA/hyper.h b/src/REPLICA/hyper.h index c17fc7a6d8..a6a7cc45da 100644 --- a/src/REPLICA/hyper.h +++ b/src/REPLICA/hyper.h @@ -27,8 +27,8 @@ namespace LAMMPS_NS { class Hyper : public Command { public: Hyper(class LAMMPS *); - ~Hyper() {} - void command(int, char **); + ~Hyper() override {} + void command(int, char **) override; private: int me, nprocs; diff --git a/src/REPLICA/neb.h b/src/REPLICA/neb.h index 26d3b72541..c99ab60904 100644 --- a/src/REPLICA/neb.h +++ b/src/REPLICA/neb.h @@ -28,8 +28,8 @@ class NEB : public Command { public: NEB(class LAMMPS *); NEB(class LAMMPS *, double, double, int, int, int, double *, double *); - ~NEB(); - void command(int, char **); // process neb command + ~NEB() override; + void command(int, char **) override; // process neb command void run(); // run NEB double ebf, ebr; // forward and reverse energy barriers diff --git a/src/REPLICA/prd.h b/src/REPLICA/prd.h index a5342c47b8..5166380b1c 100644 --- a/src/REPLICA/prd.h +++ b/src/REPLICA/prd.h @@ -27,8 +27,8 @@ namespace LAMMPS_NS { class PRD : public Command { public: PRD(class LAMMPS *); - ~PRD() {} - void command(int, char **); + ~PRD() override {} + void command(int, char **) override; private: int me, nprocs; diff --git a/src/REPLICA/tad.h b/src/REPLICA/tad.h index 7e528acfbb..e0432db9fd 100644 --- a/src/REPLICA/tad.h +++ b/src/REPLICA/tad.h @@ -27,8 +27,8 @@ namespace LAMMPS_NS { class TAD : public Command { public: TAD(class LAMMPS *); - ~TAD(); - void command(int, char **); + ~TAD() override; + void command(int, char **) override; private: int me, nprocs; diff --git a/src/REPLICA/temper.h b/src/REPLICA/temper.h index d7ebf79c33..0bce33a5f8 100644 --- a/src/REPLICA/temper.h +++ b/src/REPLICA/temper.h @@ -27,8 +27,8 @@ namespace LAMMPS_NS { class Temper : public Command { public: Temper(class LAMMPS *); - ~Temper(); - void command(int, char **); + ~Temper() override; + void command(int, char **) override; private: int me, me_universe; // my proc ID in world and universe diff --git a/src/REPLICA/temper_grem.h b/src/REPLICA/temper_grem.h index cdcf6a26aa..2aea1e1414 100644 --- a/src/REPLICA/temper_grem.h +++ b/src/REPLICA/temper_grem.h @@ -27,8 +27,8 @@ namespace LAMMPS_NS { class TemperGrem : public Command { public: TemperGrem(class LAMMPS *); - ~TemperGrem(); - void command(int, char **); + ~TemperGrem() override; + void command(int, char **) override; private: int me, me_universe; // my proc ID in world and universe diff --git a/src/REPLICA/temper_npt.h b/src/REPLICA/temper_npt.h index 47eec7053b..b6f37ea8c1 100644 --- a/src/REPLICA/temper_npt.h +++ b/src/REPLICA/temper_npt.h @@ -28,8 +28,8 @@ namespace LAMMPS_NS { class TemperNPT : public Command { public: TemperNPT(class LAMMPS *); - ~TemperNPT(); - void command(int, char **); + ~TemperNPT() override; + void command(int, char **) override; private: int me, me_universe; // my proc ID in world and universe diff --git a/src/SPIN/neb_spin.h b/src/SPIN/neb_spin.h index 8de68830d6..b667215520 100644 --- a/src/SPIN/neb_spin.h +++ b/src/SPIN/neb_spin.h @@ -27,8 +27,8 @@ namespace LAMMPS_NS { class NEBSpin : public Command { public: NEBSpin(class LAMMPS *); - ~NEBSpin(); - void command(int, char **); // process neb/spin command + ~NEBSpin() override; + void command(int, char **) override; // process neb/spin command void run(); // run NEBSpin double ebf, ebr; // forward and reverse energy barriers diff --git a/src/accelerator_kokkos.h b/src/accelerator_kokkos.h index 0cea855f1e..a6cfdd12df 100644 --- a/src/accelerator_kokkos.h +++ b/src/accelerator_kokkos.h @@ -66,7 +66,6 @@ class AtomKokkos : public Atom { public: tagint **k_special; AtomKokkos(class LAMMPS *lmp) : Atom(lmp) {} - ~AtomKokkos() {} void sync(const ExecutionSpace /*space*/, unsigned int /*mask*/) {} void modified(const ExecutionSpace /*space*/, unsigned int /*mask*/) {} }; @@ -74,39 +73,33 @@ class AtomKokkos : public Atom { class CommKokkos : public CommBrick { public: CommKokkos(class LAMMPS *lmp) : CommBrick(lmp) {} - ~CommKokkos() {} }; class CommTiledKokkos : public CommTiled { public: CommTiledKokkos(class LAMMPS *lmp) : CommTiled(lmp) {} CommTiledKokkos(class LAMMPS *lmp, Comm *oldcomm) : CommTiled(lmp, oldcomm) {} - ~CommTiledKokkos() {} }; class DomainKokkos : public Domain { public: DomainKokkos(class LAMMPS *lmp) : Domain(lmp) {} - ~DomainKokkos() {} }; class NeighborKokkos : public Neighbor { public: NeighborKokkos(class LAMMPS *lmp) : Neighbor(lmp) {} - ~NeighborKokkos() {} }; class MemoryKokkos : public Memory { public: MemoryKokkos(class LAMMPS *lmp) : Memory(lmp) {} - ~MemoryKokkos() {} void grow_kokkos(tagint **, tagint **, int, int, const char *) {} }; class ModifyKokkos : public Modify { public: ModifyKokkos(class LAMMPS *lmp) : Modify(lmp) {} - ~ModifyKokkos() {} }; class DAT { diff --git a/src/balance.h b/src/balance.h index df8ac307b4..f7a3c60df5 100644 --- a/src/balance.h +++ b/src/balance.h @@ -33,8 +33,8 @@ class Balance : public Command { int outflag; // 1 for output of balance results to file Balance(class LAMMPS *); - ~Balance(); - void command(int, char **); + ~Balance() override; + void command(int, char **) override; void options(int, int, char **); void weight_storage(char *); void init_imbalance(int); diff --git a/src/change_box.h b/src/change_box.h index cfa3a2f3e1..772a8150e5 100644 --- a/src/change_box.h +++ b/src/change_box.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class ChangeBox : public Command { public: ChangeBox(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; private: int scaleflag; diff --git a/src/citeme.h b/src/citeme.h index 8f0e6c4bca..0d9f40f57f 100644 --- a/src/citeme.h +++ b/src/citeme.h @@ -22,7 +22,7 @@ namespace LAMMPS_NS { class CiteMe : protected Pointers { public: CiteMe(class LAMMPS *, int, int, const char *); - virtual ~CiteMe(); + ~CiteMe() override; void add(const std::string &); // register publication for output void flush(); // flush buffers to screen and logfile enum { VERBOSE, TERSE }; diff --git a/src/create_atoms.h b/src/create_atoms.h index 1d62c801e8..5b71394447 100644 --- a/src/create_atoms.h +++ b/src/create_atoms.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class CreateAtoms : public Command { public: CreateAtoms(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; private: int me, nprocs; diff --git a/src/create_bonds.h b/src/create_bonds.h index eae90bef7f..aec0f14c6a 100644 --- a/src/create_bonds.h +++ b/src/create_bonds.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class CreateBonds : public Command { public: CreateBonds(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; private: int igroup, group1bit, group2bit; diff --git a/src/create_box.h b/src/create_box.h index c5a24f280a..dd74755cf8 100644 --- a/src/create_box.h +++ b/src/create_box.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class CreateBox : public Command { public: CreateBox(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; }; } // namespace LAMMPS_NS diff --git a/src/delete_atoms.h b/src/delete_atoms.h index 07d1b1352a..161427e4ef 100644 --- a/src/delete_atoms.h +++ b/src/delete_atoms.h @@ -28,7 +28,7 @@ namespace LAMMPS_NS { class DeleteAtoms : public Command { public: DeleteAtoms(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; private: int *dlist; diff --git a/src/delete_bonds.h b/src/delete_bonds.h index 6146104161..aff891e1ca 100644 --- a/src/delete_bonds.h +++ b/src/delete_bonds.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class DeleteBonds : public Command { public: DeleteBonds(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; }; } // namespace LAMMPS_NS diff --git a/src/deprecated.h b/src/deprecated.h index b06599edf4..609d0f9326 100644 --- a/src/deprecated.h +++ b/src/deprecated.h @@ -33,7 +33,7 @@ namespace LAMMPS_NS { class Deprecated : public Command { public: Deprecated(class LAMMPS *lmp) : Command(lmp){}; - void command(int, char **); + void command(int, char **) override; }; } // namespace LAMMPS_NS diff --git a/src/displace_atoms.h b/src/displace_atoms.h index e1a0947125..3d04262a73 100644 --- a/src/displace_atoms.h +++ b/src/displace_atoms.h @@ -27,8 +27,8 @@ namespace LAMMPS_NS { class DisplaceAtoms : public Command { public: DisplaceAtoms(class LAMMPS *); - ~DisplaceAtoms(); - void command(int, char **); + ~DisplaceAtoms() override; + void command(int, char **) override; private: int igroup, groupbit; diff --git a/src/info.h b/src/info.h index c1e10a2336..8c2ebb1167 100644 --- a/src/info.h +++ b/src/info.h @@ -29,7 +29,7 @@ namespace LAMMPS_NS { class Info : public Command { public: Info(class LAMMPS *lmp) : Command(lmp){}; - void command(int, char **); + void command(int, char **) override; bool is_active(const char *, const char *); bool is_defined(const char *, const char *); diff --git a/src/minimize.h b/src/minimize.h index f1dc539388..8fa1e6170b 100644 --- a/src/minimize.h +++ b/src/minimize.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class Minimize : public Command { public: Minimize(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; }; } // namespace LAMMPS_NS diff --git a/src/read_data.h b/src/read_data.h index 090e70484b..2466f2df19 100644 --- a/src/read_data.h +++ b/src/read_data.h @@ -27,8 +27,8 @@ namespace LAMMPS_NS { class ReadData : public Command { public: ReadData(class LAMMPS *); - ~ReadData(); - void command(int, char **); + ~ReadData() override; + void command(int, char **) override; static bool is_data_section(const std::string &); private: diff --git a/src/read_dump.h b/src/read_dump.h index 92e5e69c47..21c9f8d862 100644 --- a/src/read_dump.h +++ b/src/read_dump.h @@ -29,8 +29,8 @@ namespace LAMMPS_NS { class ReadDump : public Command { public: ReadDump(class LAMMPS *); - ~ReadDump(); - void command(int, char **); + ~ReadDump() override; + void command(int, char **) override; void store_files(int, char **); void setup_reader(int, char **); diff --git a/src/read_restart.h b/src/read_restart.h index 9de52a5f28..88b8709744 100644 --- a/src/read_restart.h +++ b/src/read_restart.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class ReadRestart : public Command { public: ReadRestart(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; private: int me, nprocs; diff --git a/src/replicate.h b/src/replicate.h index 48abd7b4be..9eaae1d763 100644 --- a/src/replicate.h +++ b/src/replicate.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class Replicate : public Command { public: Replicate(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; }; } // namespace LAMMPS_NS diff --git a/src/rerun.h b/src/rerun.h index 272df6bb0a..a3474a1827 100644 --- a/src/rerun.h +++ b/src/rerun.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class Rerun : public Command { public: Rerun(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; }; } // namespace LAMMPS_NS diff --git a/src/reset_atom_ids.h b/src/reset_atom_ids.h index b62dc25b77..abb20bae4f 100644 --- a/src/reset_atom_ids.h +++ b/src/reset_atom_ids.h @@ -43,7 +43,7 @@ class ResetIDs : public Command { #endif ResetIDs(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; private: bigint binlo, binhi; diff --git a/src/reset_mol_ids.h b/src/reset_mol_ids.h index 6fff49bb72..787edfc4f6 100644 --- a/src/reset_mol_ids.h +++ b/src/reset_mol_ids.h @@ -27,8 +27,8 @@ namespace LAMMPS_NS { class ResetMolIDs : public Command { public: ResetMolIDs(class LAMMPS *); - ~ResetMolIDs(); - void command(int, char **); + ~ResetMolIDs() override; + void command(int, char **) override; void create_computes(char *, char *); void reset(); diff --git a/src/run.h b/src/run.h index 55af0cf6a0..6b0df49fff 100644 --- a/src/run.h +++ b/src/run.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class Run : public Command { public: Run(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; }; } // namespace LAMMPS_NS diff --git a/src/set.h b/src/set.h index f3ccefbd9d..8831ad131c 100644 --- a/src/set.h +++ b/src/set.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class Set : public Command { public: Set(class LAMMPS *lmp) : Command(lmp){}; - void command(int, char **); + void command(int, char **) override; private: char *id; diff --git a/src/velocity.h b/src/velocity.h index cce8508021..2f27cd9152 100644 --- a/src/velocity.h +++ b/src/velocity.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class Velocity : public Command { public: Velocity(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; void init_external(const char *); void options(int, char **); void create(double, int); diff --git a/src/write_coeff.h b/src/write_coeff.h index d6a447080f..5381a9fe0b 100644 --- a/src/write_coeff.h +++ b/src/write_coeff.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class WriteCoeff : public Command { public: WriteCoeff(class LAMMPS *lmp) : Command(lmp){}; - void command(int, char **); + void command(int, char **) override; }; } // namespace LAMMPS_NS diff --git a/src/write_data.h b/src/write_data.h index d62f048894..023d270b43 100644 --- a/src/write_data.h +++ b/src/write_data.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class WriteData : public Command { public: WriteData(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; void write(const std::string &); private: diff --git a/src/write_dump.h b/src/write_dump.h index bea5660a29..c2e75b2484 100644 --- a/src/write_dump.h +++ b/src/write_dump.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class WriteDump : public Command { public: WriteDump(class LAMMPS *lmp) : Command(lmp){}; - void command(int, char **); + void command(int, char **) override; }; } // namespace LAMMPS_NS diff --git a/src/write_restart.h b/src/write_restart.h index 54d90405b2..a01d61863c 100644 --- a/src/write_restart.h +++ b/src/write_restart.h @@ -27,7 +27,7 @@ namespace LAMMPS_NS { class WriteRestart : public Command { public: WriteRestart(class LAMMPS *); - void command(int, char **); + void command(int, char **) override; void multiproc_options(int, int, int, char **); void write(const std::string &);