correctly apply override

This commit is contained in:
Axel Kohlmeyer
2025-06-24 23:28:32 -04:00
parent 766a07c5d4
commit 92ccbd13a5
5 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ namespace LAMMPS_NS {
class ConstantsOxdna : protected Pointers {
public:
ConstantsOxdna(class LAMMPS *lmp);
virtual ~ConstantsOxdna(){};
~ConstantsOxdna() override = default;
// oxDNA 1 getters
static double get_d_cs() { return d_cs; }

View File

@ -31,7 +31,7 @@ class PairBrownian : public Pair {
void compute(int, int) override;
void settings(int, char **) override;
void coeff(int, char **) override;
virtual double init_one(int, int) override;
double init_one(int, int) override;
void init_style() override;
void write_restart(FILE *) override;
void read_restart(FILE *) override;

View File

@ -54,7 +54,7 @@ class FixElectrodeConp : public Fix {
double compute_array(int, int) override;
int modify_param(int, char **) override;
int modify_param(const std::string &);
virtual void init() override;
void init() override;
void init_list(int, NeighList *) override;
void post_constructor() override; // used by ffield to set up fix efield
double memory_usage() override;

View File

@ -27,7 +27,7 @@ namespace LAMMPS_NS {
class PairLJPirani : public Pair {
public:
PairLJPirani(class LAMMPS *);
virtual ~PairLJPirani() override;
~PairLJPirani() override;
void compute(int, int) override;
void settings(int, char **) override;
void coeff(int, char **) override;

View File

@ -38,8 +38,8 @@ class FixDeform : public Fix {
void init() override;
void pre_exchange() override;
void end_of_step() override;
void virtual write_restart(FILE *) override;
void virtual restart(char *buf) override;
void write_restart(FILE *) override;
void restart(char *buf) override;
double memory_usage() override;
protected: