Apply override to remaining classes
This commit is contained in:
@ -22,52 +22,52 @@ namespace LAMMPS_NS {
|
||||
class ModifyKokkos : public Modify {
|
||||
public:
|
||||
ModifyKokkos(class LAMMPS *);
|
||||
~ModifyKokkos() {}
|
||||
void setup(int);
|
||||
void setup_pre_exchange();
|
||||
void setup_pre_neighbor();
|
||||
void setup_post_neighbor();
|
||||
void setup_pre_force(int);
|
||||
void setup_pre_reverse(int, int);
|
||||
void initial_integrate(int);
|
||||
void post_integrate();
|
||||
|
||||
void setup(int) override;
|
||||
void setup_pre_exchange() override;
|
||||
void setup_pre_neighbor() override;
|
||||
void setup_post_neighbor() override;
|
||||
void setup_pre_force(int) override;
|
||||
void setup_pre_reverse(int, int) override;
|
||||
void initial_integrate(int) override;
|
||||
void post_integrate() override;
|
||||
void pre_decide();
|
||||
void pre_exchange();
|
||||
void pre_neighbor();
|
||||
void post_neighbor();
|
||||
void pre_force(int);
|
||||
void pre_reverse(int,int);
|
||||
void post_force(int);
|
||||
void final_integrate();
|
||||
void end_of_step();
|
||||
double energy_couple();
|
||||
double energy_global();
|
||||
void energy_atom(int, double *);
|
||||
void post_run();
|
||||
void pre_exchange() override;
|
||||
void pre_neighbor() override;
|
||||
void post_neighbor() override;
|
||||
void pre_force(int) override;
|
||||
void pre_reverse(int,int) override;
|
||||
void post_force(int) override;
|
||||
void final_integrate() override;
|
||||
void end_of_step() override;
|
||||
double energy_couple() override;
|
||||
double energy_global() override;
|
||||
void energy_atom(int, double *) override;
|
||||
void post_run() override;
|
||||
|
||||
void setup_pre_force_respa(int, int);
|
||||
void initial_integrate_respa(int, int, int);
|
||||
void post_integrate_respa(int, int);
|
||||
void pre_force_respa(int, int, int);
|
||||
void post_force_respa(int, int, int);
|
||||
void final_integrate_respa(int, int);
|
||||
void setup_pre_force_respa(int, int) override;
|
||||
void initial_integrate_respa(int, int, int) override;
|
||||
void post_integrate_respa(int, int) override;
|
||||
void pre_force_respa(int, int, int) override;
|
||||
void post_force_respa(int, int, int) override;
|
||||
void final_integrate_respa(int, int) override;
|
||||
|
||||
void min_pre_exchange();
|
||||
void min_pre_neighbor();
|
||||
void min_post_neighbor();
|
||||
void min_pre_force(int);
|
||||
void min_pre_reverse(int,int);
|
||||
void min_post_force(int);
|
||||
void min_pre_exchange() override;
|
||||
void min_pre_neighbor() override;
|
||||
void min_post_neighbor() override;
|
||||
void min_pre_force(int) override;
|
||||
void min_pre_reverse(int,int) override;
|
||||
void min_post_force(int) override;
|
||||
|
||||
double min_energy(double *);
|
||||
void min_store();
|
||||
void min_step(double, double *);
|
||||
void min_clearstore();
|
||||
void min_pushstore();
|
||||
void min_popstore();
|
||||
double max_alpha(double *);
|
||||
int min_dof();
|
||||
int min_reset_ref();
|
||||
double min_energy(double *) override;
|
||||
void min_store() override;
|
||||
void min_step(double, double *) override;
|
||||
void min_clearstore() override;
|
||||
void min_pushstore() override;
|
||||
void min_popstore() override;
|
||||
double max_alpha(double *) override;
|
||||
int min_dof() override;
|
||||
int min_reset_ref() override;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ struct RandWrap {
|
||||
class RandPoolWrap : protected Pointers {
|
||||
public:
|
||||
RandPoolWrap(int, class LAMMPS *);
|
||||
~RandPoolWrap();
|
||||
~RandPoolWrap() override;
|
||||
void destroy();
|
||||
void init(RanMars*, int);
|
||||
|
||||
|
||||
@ -36,18 +36,18 @@ class FixLbFluid : public Fix {
|
||||
|
||||
public:
|
||||
FixLbFluid(class LAMMPS *, int, char **);
|
||||
~FixLbFluid();
|
||||
int setmask();
|
||||
void init();
|
||||
void initial_integrate(int);
|
||||
void setup(int);
|
||||
void post_force(int);
|
||||
void end_of_step();
|
||||
~FixLbFluid() override;
|
||||
int setmask() override;
|
||||
void init() override;
|
||||
void initial_integrate(int) override;
|
||||
void setup(int) override;
|
||||
void post_force(int) override;
|
||||
void end_of_step() override;
|
||||
|
||||
void grow_arrays(int);
|
||||
void copy_arrays(int, int, int);
|
||||
int pack_exchange(int, double *);
|
||||
int unpack_exchange(int, double *);
|
||||
void grow_arrays(int) override;
|
||||
void copy_arrays(int, int, int) override;
|
||||
int pack_exchange(int, double *) override;
|
||||
int unpack_exchange(int, double *) override;
|
||||
|
||||
private:
|
||||
double viscosity, densityinit_real, a_0_real, T;
|
||||
|
||||
@ -27,9 +27,9 @@ namespace LAMMPS_NS {
|
||||
class FixLbMomentum : public Fix {
|
||||
public:
|
||||
FixLbMomentum(class LAMMPS *, int, char **);
|
||||
int setmask();
|
||||
void init();
|
||||
void end_of_step();
|
||||
int setmask() override;
|
||||
void init() override;
|
||||
void end_of_step() override;
|
||||
|
||||
private:
|
||||
int linear;
|
||||
|
||||
@ -27,17 +27,17 @@ namespace LAMMPS_NS {
|
||||
class FixLbPC : public Fix {
|
||||
public:
|
||||
FixLbPC(class LAMMPS *, int, char **);
|
||||
~FixLbPC();
|
||||
int setmask();
|
||||
void init();
|
||||
void initial_integrate(int);
|
||||
void final_integrate();
|
||||
~FixLbPC() override;
|
||||
int setmask() override;
|
||||
void init() override;
|
||||
void initial_integrate(int) override;
|
||||
void final_integrate() override;
|
||||
|
||||
void grow_arrays(int);
|
||||
void copy_arrays(int, int, int);
|
||||
void grow_arrays(int) override;
|
||||
void copy_arrays(int, int, int) override;
|
||||
// void set_arrays(int);
|
||||
int pack_exchange(int, double *);
|
||||
int unpack_exchange(int, double *);
|
||||
int pack_exchange(int, double *) override;
|
||||
int unpack_exchange(int, double *) override;
|
||||
|
||||
private:
|
||||
double dtv, dtf;
|
||||
|
||||
@ -27,25 +27,25 @@ namespace LAMMPS_NS {
|
||||
class FixLbRigidPCSphere : public Fix {
|
||||
public:
|
||||
FixLbRigidPCSphere(class LAMMPS *, int, char **);
|
||||
virtual ~FixLbRigidPCSphere();
|
||||
virtual int setmask();
|
||||
virtual void init();
|
||||
virtual void setup(int);
|
||||
virtual void initial_integrate(int);
|
||||
virtual void final_integrate();
|
||||
virtual double compute_scalar();
|
||||
~FixLbRigidPCSphere() override;
|
||||
int setmask() override;
|
||||
void init() override;
|
||||
void setup(int) override;
|
||||
void initial_integrate(int) override;
|
||||
void final_integrate() override;
|
||||
double compute_scalar() override;
|
||||
|
||||
double memory_usage();
|
||||
void grow_arrays(int);
|
||||
void copy_arrays(int, int, int);
|
||||
void set_arrays(int);
|
||||
int pack_exchange(int, double *);
|
||||
int unpack_exchange(int, double *);
|
||||
double memory_usage() override;
|
||||
void grow_arrays(int) override;
|
||||
void copy_arrays(int, int, int) override;
|
||||
void set_arrays(int) override;
|
||||
int pack_exchange(int, double *) override;
|
||||
int unpack_exchange(int, double *) override;
|
||||
|
||||
void pre_neighbor();
|
||||
int dof(int);
|
||||
void reset_dt();
|
||||
double compute_array(int, int);
|
||||
void pre_neighbor() override;
|
||||
int dof(int) override;
|
||||
void reset_dt() override;
|
||||
double compute_array(int, int) override;
|
||||
|
||||
private:
|
||||
double **up;
|
||||
|
||||
@ -27,14 +27,14 @@ namespace LAMMPS_NS {
|
||||
class FixLbViscous : public Fix {
|
||||
public:
|
||||
FixLbViscous(class LAMMPS *, int, char **);
|
||||
virtual ~FixLbViscous() = default;
|
||||
int setmask();
|
||||
void init();
|
||||
void setup(int);
|
||||
void min_setup(int);
|
||||
void post_force(int);
|
||||
void post_force_respa(int, int, int);
|
||||
void min_post_force(int);
|
||||
|
||||
int setmask() override;
|
||||
void init() override;
|
||||
void setup(int) override;
|
||||
void min_setup(int) override;
|
||||
void post_force(int) override;
|
||||
void post_force_respa(int, int, int) override;
|
||||
void min_post_force(int) override;
|
||||
|
||||
protected:
|
||||
int nlevels_respa;
|
||||
|
||||
@ -38,10 +38,10 @@ namespace LAMMPS_NS {
|
||||
class ComputeSMDTLSPHDefgrad : public Compute {
|
||||
public:
|
||||
ComputeSMDTLSPHDefgrad(class LAMMPS *, int, char **);
|
||||
~ComputeSMDTLSPHDefgrad();
|
||||
void init();
|
||||
void compute_peratom();
|
||||
double memory_usage();
|
||||
~ComputeSMDTLSPHDefgrad() override;
|
||||
void init() override;
|
||||
void compute_peratom() override;
|
||||
double memory_usage() override;
|
||||
|
||||
private:
|
||||
int nmax;
|
||||
|
||||
@ -38,10 +38,10 @@ namespace LAMMPS_NS {
|
||||
class ComputeSmdTlsphShape : public Compute {
|
||||
public:
|
||||
ComputeSmdTlsphShape(class LAMMPS *, int, char **);
|
||||
~ComputeSmdTlsphShape();
|
||||
void init();
|
||||
void compute_peratom();
|
||||
double memory_usage();
|
||||
~ComputeSmdTlsphShape() override;
|
||||
void init() override;
|
||||
void compute_peratom() override;
|
||||
double memory_usage() override;
|
||||
|
||||
private:
|
||||
int nmax;
|
||||
|
||||
@ -38,10 +38,10 @@ namespace LAMMPS_NS {
|
||||
class ComputeSMDTLSPHstrain : public Compute {
|
||||
public:
|
||||
ComputeSMDTLSPHstrain(class LAMMPS *, int, char **);
|
||||
~ComputeSMDTLSPHstrain();
|
||||
void init();
|
||||
void compute_peratom();
|
||||
double memory_usage();
|
||||
~ComputeSMDTLSPHstrain() override;
|
||||
void init() override;
|
||||
void compute_peratom() override;
|
||||
double memory_usage() override;
|
||||
|
||||
private:
|
||||
int nmax;
|
||||
|
||||
@ -38,10 +38,10 @@ namespace LAMMPS_NS {
|
||||
class ComputeSMDTLSPHStrainRate : public Compute {
|
||||
public:
|
||||
ComputeSMDTLSPHStrainRate(class LAMMPS *, int, char **);
|
||||
~ComputeSMDTLSPHStrainRate();
|
||||
void init();
|
||||
void compute_peratom();
|
||||
double memory_usage();
|
||||
~ComputeSMDTLSPHStrainRate() override;
|
||||
void init() override;
|
||||
void compute_peratom() override;
|
||||
double memory_usage() override;
|
||||
|
||||
private:
|
||||
int nmax;
|
||||
|
||||
@ -38,10 +38,10 @@ namespace LAMMPS_NS {
|
||||
class ComputeSMDTLSPHStress : public Compute {
|
||||
public:
|
||||
ComputeSMDTLSPHStress(class LAMMPS *, int, char **);
|
||||
~ComputeSMDTLSPHStress();
|
||||
void init();
|
||||
void compute_peratom();
|
||||
double memory_usage();
|
||||
~ComputeSMDTLSPHStress() override;
|
||||
void init() override;
|
||||
void compute_peratom() override;
|
||||
double memory_usage() override;
|
||||
|
||||
private:
|
||||
int nmax;
|
||||
|
||||
@ -38,10 +38,10 @@ namespace LAMMPS_NS {
|
||||
class ComputeSMDULSPHStrainRate : public Compute {
|
||||
public:
|
||||
ComputeSMDULSPHStrainRate(class LAMMPS *, int, char **);
|
||||
~ComputeSMDULSPHStrainRate();
|
||||
void init();
|
||||
void compute_peratom();
|
||||
double memory_usage();
|
||||
~ComputeSMDULSPHStrainRate() override;
|
||||
void init() override;
|
||||
void compute_peratom() override;
|
||||
double memory_usage() override;
|
||||
|
||||
private:
|
||||
int nmax;
|
||||
|
||||
@ -38,10 +38,10 @@ namespace LAMMPS_NS {
|
||||
class ComputeSMDULSPHStress : public Compute {
|
||||
public:
|
||||
ComputeSMDULSPHStress(class LAMMPS *, int, char **);
|
||||
~ComputeSMDULSPHStress();
|
||||
void init();
|
||||
void compute_peratom();
|
||||
double memory_usage();
|
||||
~ComputeSMDULSPHStress() override;
|
||||
void init() override;
|
||||
void compute_peratom() override;
|
||||
double memory_usage() override;
|
||||
|
||||
private:
|
||||
int nmax;
|
||||
|
||||
@ -39,21 +39,21 @@ namespace LAMMPS_NS {
|
||||
class PairTlsph : public Pair {
|
||||
public:
|
||||
PairTlsph(class LAMMPS *);
|
||||
virtual ~PairTlsph();
|
||||
virtual void compute(int, int);
|
||||
void settings(int, char **);
|
||||
void coeff(int, char **);
|
||||
double init_one(int, int);
|
||||
void init_style();
|
||||
void init_list(int, class NeighList *);
|
||||
void write_restart_settings(FILE *) {}
|
||||
void read_restart_settings(FILE *) {}
|
||||
virtual double memory_usage();
|
||||
~PairTlsph() override;
|
||||
void compute(int, int) override;
|
||||
void settings(int, char **) override;
|
||||
void coeff(int, char **) override;
|
||||
double init_one(int, int) override;
|
||||
void init_style() override;
|
||||
void init_list(int, class NeighList *) override;
|
||||
void write_restart_settings(FILE *) override {}
|
||||
void read_restart_settings(FILE *) override {}
|
||||
double memory_usage() override;
|
||||
void compute_shape_matrix();
|
||||
void material_model();
|
||||
void *extract(const char *, int &);
|
||||
int pack_forward_comm(int, int *, double *, int, int *);
|
||||
void unpack_forward_comm(int, int, double *);
|
||||
void *extract(const char *, int &) override;
|
||||
int pack_forward_comm(int, int *, double *, int, int *) override;
|
||||
void unpack_forward_comm(int, int, double *) override;
|
||||
void AssembleStress();
|
||||
|
||||
void PreCompute();
|
||||
|
||||
@ -39,19 +39,19 @@ namespace LAMMPS_NS {
|
||||
class PairTriSurf : public Pair {
|
||||
public:
|
||||
PairTriSurf(class LAMMPS *);
|
||||
virtual ~PairTriSurf();
|
||||
virtual void compute(int, int);
|
||||
void settings(int, char **);
|
||||
void coeff(int, char **);
|
||||
double init_one(int, int);
|
||||
void init_style();
|
||||
void init_list(int, class NeighList *);
|
||||
virtual double memory_usage();
|
||||
~PairTriSurf() override;
|
||||
void compute(int, int) override;
|
||||
void settings(int, char **) override;
|
||||
void coeff(int, char **) override;
|
||||
double init_one(int, int) override;
|
||||
void init_style() override;
|
||||
void init_list(int, class NeighList *) override;
|
||||
double memory_usage() override;
|
||||
void PointTriangleDistance(const Eigen::Vector3d P, const Eigen::Vector3d TRI1,
|
||||
const Eigen::Vector3d TRI2, const Eigen::Vector3d TRI3,
|
||||
Eigen::Vector3d &CP, double &dist);
|
||||
double clamp(const double a, const double min, const double max);
|
||||
void *extract(const char *, int &);
|
||||
void *extract(const char *, int &) override;
|
||||
|
||||
protected:
|
||||
double **bulkmodulus;
|
||||
|
||||
@ -39,18 +39,18 @@ namespace LAMMPS_NS {
|
||||
class PairULSPH : public Pair {
|
||||
public:
|
||||
PairULSPH(class LAMMPS *);
|
||||
virtual ~PairULSPH();
|
||||
virtual void compute(int, int);
|
||||
void settings(int, char **);
|
||||
void coeff(int, char **);
|
||||
double init_one(int, int);
|
||||
void init_style();
|
||||
void init_list(int, class NeighList *);
|
||||
virtual double memory_usage();
|
||||
int pack_forward_comm(int, int *, double *, int, int *);
|
||||
void unpack_forward_comm(int, int, double *);
|
||||
~PairULSPH() override;
|
||||
void compute(int, int) override;
|
||||
void settings(int, char **) override;
|
||||
void coeff(int, char **) override;
|
||||
double init_one(int, int) override;
|
||||
void init_style() override;
|
||||
void init_list(int, class NeighList *) override;
|
||||
double memory_usage() override;
|
||||
int pack_forward_comm(int, int *, double *, int, int *) override;
|
||||
void unpack_forward_comm(int, int, double *) override;
|
||||
void AssembleStressTensor();
|
||||
void *extract(const char *, int &);
|
||||
void *extract(const char *, int &) override;
|
||||
void PreCompute();
|
||||
void PreCompute_DensitySummation();
|
||||
double effective_shear_modulus(const Eigen::Matrix3d d_dev, const Eigen::Matrix3d deltaStressDev,
|
||||
|
||||
@ -26,13 +26,12 @@ namespace user_manifold {
|
||||
public:
|
||||
enum { NPARAMS = 1 }; // Number of parameters.
|
||||
manifold_cylinder(LAMMPS *lmp, int, char **);
|
||||
virtual ~manifold_cylinder() {}
|
||||
virtual double g(const double *x);
|
||||
virtual void n(const double *x, double *n);
|
||||
double g(const double *x) override;
|
||||
void n(const double *x, double *n) override;
|
||||
static const char *type() { return "cylinder"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
static int expected_argc() { return NPARAMS; }
|
||||
virtual int nparams() { return NPARAMS; }
|
||||
int nparams() override { return NPARAMS; }
|
||||
};
|
||||
} // namespace user_manifold
|
||||
|
||||
|
||||
@ -24,13 +24,12 @@ namespace user_manifold {
|
||||
public:
|
||||
manifold_cylinder_dent(LAMMPS *lmp, int, char **);
|
||||
enum { NPARAMS = 3 }; // Number of parameters.
|
||||
virtual ~manifold_cylinder_dent() {}
|
||||
virtual double g(const double *x);
|
||||
virtual void n(const double *x, double *n);
|
||||
double g(const double *x) override;
|
||||
void n(const double *x, double *n) override;
|
||||
static const char *type() { return "cylinder/dent"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
static int expected_argc() { return NPARAMS; }
|
||||
virtual int nparams() { return NPARAMS; }
|
||||
int nparams() override { return NPARAMS; }
|
||||
};
|
||||
} // namespace user_manifold
|
||||
|
||||
|
||||
@ -25,15 +25,14 @@ namespace user_manifold {
|
||||
public:
|
||||
enum { NPARAMS = 4 }; // Number of parameters.
|
||||
manifold_dumbbell(LAMMPS *lmp, int, char **);
|
||||
virtual ~manifold_dumbbell() {}
|
||||
virtual double g(const double *x);
|
||||
virtual void n(const double *x, double *nn);
|
||||
double g(const double *x) override;
|
||||
void n(const double *x, double *nn) override;
|
||||
|
||||
static const char *type() { return "dumbbell"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
|
||||
static int expected_argc() { return NPARAMS; }
|
||||
virtual int nparams() { return NPARAMS; }
|
||||
int nparams() override { return NPARAMS; }
|
||||
};
|
||||
} // namespace user_manifold
|
||||
|
||||
|
||||
@ -24,14 +24,13 @@ namespace user_manifold {
|
||||
public:
|
||||
enum { NPARAMS = 3 };
|
||||
manifold_ellipsoid(LAMMPS *lmp, int, char **);
|
||||
virtual ~manifold_ellipsoid() {}
|
||||
virtual double g(const double *x);
|
||||
virtual void n(const double *x, double *n);
|
||||
double g(const double *x) override;
|
||||
void n(const double *x, double *n) override;
|
||||
|
||||
static const char *type() { return "ellipsoid"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
static int expected_argc() { return NPARAMS; }
|
||||
virtual int nparams() { return NPARAMS; }
|
||||
int nparams() override { return NPARAMS; }
|
||||
};
|
||||
} // namespace user_manifold
|
||||
|
||||
|
||||
@ -51,19 +51,19 @@ namespace user_manifold {
|
||||
public:
|
||||
enum { NPARAMS = 4 };
|
||||
manifold_gaussian_bump(class LAMMPS *, int, char **);
|
||||
virtual ~manifold_gaussian_bump();
|
||||
~manifold_gaussian_bump() override;
|
||||
|
||||
virtual double g(const double *);
|
||||
virtual void n(const double *, double *);
|
||||
double g(const double *) override;
|
||||
void n(const double *, double *) override;
|
||||
|
||||
// Variant of g that computes n at the same time.
|
||||
virtual double g_and_n(const double *x, double *nn);
|
||||
double g_and_n(const double *x, double *nn) override;
|
||||
|
||||
static const char *type() { return "gaussian_bump"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
|
||||
virtual int nparams() { return NPARAMS; }
|
||||
virtual void post_param_init();
|
||||
int nparams() override { return NPARAMS; }
|
||||
void post_param_init() override;
|
||||
|
||||
private:
|
||||
// Some private constants:
|
||||
|
||||
@ -25,13 +25,12 @@ namespace user_manifold {
|
||||
public:
|
||||
enum { NPARAMS = 6 }; // Number of parameters.
|
||||
manifold_plane(LAMMPS *lmp, int, char **);
|
||||
virtual ~manifold_plane() {}
|
||||
virtual double g(const double *x);
|
||||
virtual void n(const double *x, double *n);
|
||||
double g(const double *x) override;
|
||||
void n(const double *x, double *n) override;
|
||||
static const char *type() { return "plane"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
static int expected_argc() { return NPARAMS; }
|
||||
virtual int nparams() { return NPARAMS; }
|
||||
int nparams() override { return NPARAMS; }
|
||||
};
|
||||
} // namespace user_manifold
|
||||
|
||||
|
||||
@ -25,13 +25,12 @@ namespace user_manifold {
|
||||
public:
|
||||
enum { NPARAMS = 2 }; // Number of parameters.
|
||||
manifold_plane_wiggle(LAMMPS *lmp, int, char **);
|
||||
virtual ~manifold_plane_wiggle() {}
|
||||
virtual double g(const double *x);
|
||||
virtual void n(const double *x, double *n);
|
||||
double g(const double *x) override;
|
||||
void n(const double *x, double *n) override;
|
||||
static const char *type() { return "plane/wiggle"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
static int expected_argc() { return NPARAMS; }
|
||||
virtual int nparams() { return NPARAMS; }
|
||||
int nparams() override { return NPARAMS; }
|
||||
};
|
||||
} // namespace user_manifold
|
||||
|
||||
|
||||
@ -26,15 +26,14 @@ namespace user_manifold {
|
||||
enum { NPARAMS = 1 };
|
||||
manifold_sphere(LAMMPS *lmp, int, char **) : manifold(lmp) {}
|
||||
|
||||
virtual ~manifold_sphere() {}
|
||||
virtual double g(const double *x)
|
||||
double g(const double *x) override
|
||||
{
|
||||
double R = params[0];
|
||||
double r2 = x[0] * x[0] + x[1] * x[1] + x[2] * x[2];
|
||||
return r2 - R * R;
|
||||
}
|
||||
|
||||
virtual double g_and_n(const double *x, double *nn)
|
||||
double g_and_n(const double *x, double *nn) override
|
||||
{
|
||||
double R = params[0];
|
||||
double r2 = x[0] * x[0] + x[1] * x[1] + x[2] * x[2];
|
||||
@ -45,7 +44,7 @@ namespace user_manifold {
|
||||
return r2 - R * R;
|
||||
}
|
||||
|
||||
virtual void n(const double *x, double *nn)
|
||||
void n(const double *x, double *nn) override
|
||||
{
|
||||
nn[0] = 2 * x[0];
|
||||
nn[1] = 2 * x[1];
|
||||
@ -59,9 +58,9 @@ namespace user_manifold {
|
||||
}
|
||||
|
||||
static const char *type() { return "sphere"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
static int expected_argc() { return NPARAMS; }
|
||||
virtual int nparams() { return NPARAMS; }
|
||||
int nparams() override { return NPARAMS; }
|
||||
};
|
||||
} // namespace user_manifold
|
||||
|
||||
|
||||
@ -25,16 +25,15 @@ namespace user_manifold {
|
||||
public:
|
||||
enum { NPARAMS = 5 }; // Number of parameters.
|
||||
manifold_spine(LAMMPS *lmp, int, char **);
|
||||
virtual ~manifold_spine() {}
|
||||
virtual double g(const double *x);
|
||||
virtual void n(const double *x, double *nn);
|
||||
virtual double g_and_n(const double *x, double *nn);
|
||||
double g(const double *x) override;
|
||||
void n(const double *x, double *nn) override;
|
||||
double g_and_n(const double *x, double *nn) override;
|
||||
|
||||
static const char *type() { return "spine"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
|
||||
static int expected_argc() { return NPARAMS; }
|
||||
virtual int nparams() { return NPARAMS; }
|
||||
int nparams() override { return NPARAMS; }
|
||||
|
||||
protected:
|
||||
int power;
|
||||
@ -45,7 +44,7 @@ namespace user_manifold {
|
||||
manifold_spine_two(LAMMPS *lmp, int, char **);
|
||||
|
||||
static const char *type() { return "spine/two"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
};
|
||||
} // namespace user_manifold
|
||||
|
||||
|
||||
@ -26,11 +26,9 @@ namespace user_manifold {
|
||||
enum { NPARAMS = 2 };
|
||||
manifold_supersphere(LAMMPS *lmp, int, char **) : manifold(lmp) {}
|
||||
|
||||
virtual ~manifold_supersphere() {}
|
||||
|
||||
double my_sign(double a) { return (a > 0) - (a < 0); }
|
||||
|
||||
virtual double g(const double *x)
|
||||
double g(const double *x) override
|
||||
{
|
||||
double R = params[0];
|
||||
double q = params[1];
|
||||
@ -43,7 +41,7 @@ namespace user_manifold {
|
||||
return rr - pow(R, q);
|
||||
}
|
||||
|
||||
virtual void n(const double *x, double *nn)
|
||||
void n(const double *x, double *nn) override
|
||||
{
|
||||
double q = params[1];
|
||||
double xx = fabs(x[0]);
|
||||
@ -56,9 +54,9 @@ namespace user_manifold {
|
||||
}
|
||||
|
||||
static const char *type() { return "supersphere"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
static int expected_argc() { return NPARAMS; }
|
||||
virtual int nparams() { return NPARAMS; }
|
||||
int nparams() override { return NPARAMS; }
|
||||
};
|
||||
} // namespace user_manifold
|
||||
|
||||
|
||||
@ -26,17 +26,17 @@ namespace user_manifold {
|
||||
public:
|
||||
enum { NPARAMS = 3 };
|
||||
manifold_thylakoid(LAMMPS *lmp, int, char **);
|
||||
virtual ~manifold_thylakoid();
|
||||
~manifold_thylakoid() override;
|
||||
|
||||
virtual double g(const double *x);
|
||||
virtual void n(const double *x, double *n);
|
||||
double g(const double *x) override;
|
||||
void n(const double *x, double *n) override;
|
||||
|
||||
static const char *type() { return "thylakoid"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
static int expected_argc() { return NPARAMS; }
|
||||
virtual int nparams() { return NPARAMS; }
|
||||
int nparams() override { return NPARAMS; }
|
||||
|
||||
virtual void post_param_init();
|
||||
void post_param_init() override;
|
||||
private:
|
||||
void init_domains();
|
||||
|
||||
|
||||
@ -24,14 +24,13 @@ namespace user_manifold {
|
||||
public:
|
||||
enum { NPARAMS = 2 };
|
||||
manifold_torus(LAMMPS *, int, char **);
|
||||
~manifold_torus() {}
|
||||
virtual double g(const double *x);
|
||||
virtual void n(const double *x, double *n);
|
||||
double g(const double *x) override;
|
||||
void n(const double *x, double *n) override;
|
||||
|
||||
static const char *type() { return "torus"; }
|
||||
virtual const char *id() { return type(); }
|
||||
const char *id() override { return type(); }
|
||||
static int expected_argc() { return NPARAMS; }
|
||||
virtual int nparams() { return NPARAMS; }
|
||||
int nparams() override { return NPARAMS; }
|
||||
};
|
||||
|
||||
} // namespace user_manifold
|
||||
|
||||
@ -28,20 +28,20 @@ namespace LAMMPS_NS {
|
||||
class FixMDIEngine : public Fix {
|
||||
public:
|
||||
FixMDIEngine(class LAMMPS *, int, char **);
|
||||
~FixMDIEngine();
|
||||
int setmask();
|
||||
void init();
|
||||
~FixMDIEngine() override;
|
||||
int setmask() override;
|
||||
void init() override;
|
||||
|
||||
int execute_command(const char *command, MDI_Comm driver_socket);
|
||||
char *engine_mode(const char *node);
|
||||
|
||||
// receive and update forces
|
||||
|
||||
void min_setup(int);
|
||||
void post_integrate();
|
||||
void post_force(int);
|
||||
void min_pre_force(int); //@COORDS
|
||||
void min_post_force(int); //@FORCES
|
||||
void min_setup(int) override;
|
||||
void post_integrate() override;
|
||||
void post_force(int) override;
|
||||
void min_pre_force(int) override; //@COORDS
|
||||
void min_post_force(int) override; //@FORCES
|
||||
|
||||
double *add_force; // stores forces added using +FORCE command
|
||||
double potential_energy; // stores potential energy
|
||||
|
||||
@ -27,8 +27,8 @@ namespace LAMMPS_NS {
|
||||
class MDIEngine : public Command {
|
||||
public:
|
||||
MDIEngine(LAMMPS *lmp) : Command(lmp) {}
|
||||
virtual ~MDIEngine() {}
|
||||
void command(int, char **);
|
||||
|
||||
void command(int, char **) override;
|
||||
|
||||
private:
|
||||
class FixMDIEngine *mdi_fix;
|
||||
|
||||
@ -39,12 +39,12 @@ class PairHDNNP : public Pair {
|
||||
|
||||
public:
|
||||
PairHDNNP(class LAMMPS *);
|
||||
virtual ~PairHDNNP();
|
||||
virtual void compute(int, int);
|
||||
virtual void settings(int, char **);
|
||||
virtual void coeff(int, char **);
|
||||
virtual void init_style();
|
||||
virtual double init_one(int, int);
|
||||
~PairHDNNP() override;
|
||||
void compute(int, int) override;
|
||||
void settings(int, char **) override;
|
||||
void coeff(int, char **) override;
|
||||
void init_style() override;
|
||||
double init_one(int, int) override;
|
||||
|
||||
protected:
|
||||
virtual void allocate();
|
||||
|
||||
@ -11,7 +11,7 @@ class MLIAP_SO3 : protected Pointers {
|
||||
MLIAP_SO3(LAMMPS *, double vrcut, int vlmax, int vnmax, double valpha);
|
||||
MLIAP_SO3(LAMMPS *lmp) : Pointers(lmp){};
|
||||
|
||||
~MLIAP_SO3();
|
||||
~MLIAP_SO3() override;
|
||||
|
||||
void init();
|
||||
|
||||
|
||||
@ -39,15 +39,15 @@ namespace LAMMPS_NS {
|
||||
class PairPACE : public Pair {
|
||||
public:
|
||||
PairPACE(class LAMMPS *);
|
||||
virtual ~PairPACE();
|
||||
~PairPACE() override;
|
||||
|
||||
virtual void compute(int, int);
|
||||
void settings(int, char **);
|
||||
void coeff(int, char **);
|
||||
virtual void init_style();
|
||||
double init_one(int, int);
|
||||
void compute(int, int) override;
|
||||
void settings(int, char **) override;
|
||||
void coeff(int, char **) override;
|
||||
void init_style() override;
|
||||
double init_one(int, int) override;
|
||||
|
||||
void *extract(const char *, int &);
|
||||
void *extract(const char *, int &) override;
|
||||
|
||||
protected:
|
||||
struct ACEImpl *aceimpl;
|
||||
|
||||
@ -29,18 +29,18 @@ namespace LAMMPS_NS {
|
||||
class ReaderMolfile : public Reader {
|
||||
public:
|
||||
ReaderMolfile(class LAMMPS *);
|
||||
virtual ~ReaderMolfile();
|
||||
~ReaderMolfile() override;
|
||||
|
||||
virtual void settings(int, char **);
|
||||
void settings(int, char **) override;
|
||||
|
||||
virtual int read_time(bigint &);
|
||||
virtual void skip();
|
||||
virtual bigint read_header(double[3][3], int &, int &, int, int, int *, char **, int, int, int &,
|
||||
int &, int &, int &);
|
||||
virtual void read_atoms(int, int, double **);
|
||||
int read_time(bigint &) override;
|
||||
void skip() override;
|
||||
bigint read_header(double[3][3], int &, int &, int, int, int *, char **, int, int, int &,
|
||||
int &, int &, int &) override;
|
||||
void read_atoms(int, int, double **) override;
|
||||
|
||||
virtual void open_file(const std::string &);
|
||||
virtual void close_file();
|
||||
void open_file(const std::string &) override;
|
||||
void close_file() override;
|
||||
|
||||
private:
|
||||
int *fieldindex; // mapping of input fields to dump
|
||||
|
||||
@ -28,7 +28,7 @@ class DumpAtomMPIIO : public DumpAtom {
|
||||
|
||||
public:
|
||||
DumpAtomMPIIO(class LAMMPS *, int, char **);
|
||||
virtual ~DumpAtomMPIIO();
|
||||
~DumpAtomMPIIO() override;
|
||||
|
||||
protected:
|
||||
bigint
|
||||
@ -40,12 +40,12 @@ class DumpAtomMPIIO : public DumpAtom {
|
||||
int performEstimate; // switch for write_data and write_header methods to use for gathering data and detemining filesize for preallocation vs actually writing the data
|
||||
char *filecurrent; // name of file for this round (with % and * replaced)
|
||||
|
||||
virtual void openfile();
|
||||
virtual void write_header(bigint);
|
||||
virtual void write();
|
||||
virtual void write_data(int, double *);
|
||||
void openfile() override;
|
||||
void write_header(bigint) override;
|
||||
void write() override;
|
||||
void write_data(int, double *) override;
|
||||
|
||||
virtual void init_style();
|
||||
void init_style() override;
|
||||
typedef void (DumpAtomMPIIO::*FnPtrHeader)(bigint);
|
||||
FnPtrHeader header_choice; // ptr to write header functions
|
||||
void header_binary(bigint);
|
||||
@ -59,7 +59,7 @@ class DumpAtomMPIIO : public DumpAtom {
|
||||
int convert_noimage_omp(int, double *); // multithreaded version of convert_noimage
|
||||
#endif
|
||||
|
||||
int convert_string(int, double *);
|
||||
int convert_string(int, double *) override;
|
||||
typedef void (DumpAtomMPIIO::*FnPtrData)(int, double *);
|
||||
FnPtrData write_choice; // ptr to write data functions
|
||||
void write_binary(int, double *);
|
||||
|
||||
@ -27,7 +27,7 @@ namespace LAMMPS_NS {
|
||||
class DumpCFGMPIIO : public DumpCFG {
|
||||
public:
|
||||
DumpCFGMPIIO(class LAMMPS *, int, char **);
|
||||
virtual ~DumpCFGMPIIO();
|
||||
~DumpCFGMPIIO() override;
|
||||
|
||||
protected:
|
||||
bigint
|
||||
@ -43,11 +43,11 @@ class DumpCFGMPIIO : public DumpCFG {
|
||||
int convert_string_omp(int, double *); // multithreaded version of convert_string
|
||||
#endif
|
||||
|
||||
virtual void openfile();
|
||||
virtual void init_style();
|
||||
virtual void write_header(bigint);
|
||||
virtual void write();
|
||||
virtual void write_data(int, double *);
|
||||
void openfile() override;
|
||||
void init_style() override;
|
||||
void write_header(bigint) override;
|
||||
void write() override;
|
||||
void write_data(int, double *) override;
|
||||
|
||||
typedef void (DumpCFGMPIIO::*FnPtrData)(int, double *);
|
||||
FnPtrData write_choice; // ptr to write data functions
|
||||
|
||||
@ -27,7 +27,7 @@ namespace LAMMPS_NS {
|
||||
class DumpCustomMPIIO : public DumpCustom {
|
||||
public:
|
||||
DumpCustomMPIIO(class LAMMPS *, int, char **);
|
||||
virtual ~DumpCustomMPIIO();
|
||||
~DumpCustomMPIIO() override;
|
||||
|
||||
protected:
|
||||
bigint
|
||||
@ -43,12 +43,12 @@ class DumpCustomMPIIO : public DumpCustom {
|
||||
int convert_string_omp(int, double *); // multithreaded version of convert_string
|
||||
#endif
|
||||
|
||||
virtual void openfile();
|
||||
virtual void write_header(bigint);
|
||||
virtual void write();
|
||||
virtual void write_data(int, double *);
|
||||
void openfile() override;
|
||||
void write_header(bigint) override;
|
||||
void write() override;
|
||||
void write_data(int, double *) override;
|
||||
|
||||
virtual void init_style();
|
||||
void init_style() override;
|
||||
typedef void (DumpCustomMPIIO::*FnPtrHeader)(bigint);
|
||||
FnPtrHeader header_choice; // ptr to write header functions
|
||||
void header_binary(bigint);
|
||||
|
||||
@ -27,7 +27,7 @@ namespace LAMMPS_NS {
|
||||
class DumpXYZMPIIO : public DumpXYZ {
|
||||
public:
|
||||
DumpXYZMPIIO(class LAMMPS *, int, char **);
|
||||
virtual ~DumpXYZMPIIO();
|
||||
~DumpXYZMPIIO() override;
|
||||
|
||||
protected:
|
||||
bigint
|
||||
@ -43,12 +43,12 @@ class DumpXYZMPIIO : public DumpXYZ {
|
||||
int convert_string_omp(int, double *); // multithreaded version of convert_string
|
||||
#endif
|
||||
|
||||
virtual void openfile();
|
||||
virtual void write_header(bigint);
|
||||
virtual void write();
|
||||
virtual void write_data(int, double *);
|
||||
void openfile() override;
|
||||
void write_header(bigint) override;
|
||||
void write() override;
|
||||
void write_data(int, double *) override;
|
||||
|
||||
virtual void init_style();
|
||||
void init_style() override;
|
||||
|
||||
typedef void (DumpXYZMPIIO::*FnPtrData)(int, double *);
|
||||
FnPtrData write_choice; // ptr to write data functions
|
||||
|
||||
@ -27,7 +27,7 @@ class RestartMPIIO : protected Pointers {
|
||||
int mpiio_exists;
|
||||
|
||||
RestartMPIIO(class LAMMPS *);
|
||||
~RestartMPIIO() {}
|
||||
|
||||
void openForRead(const char *);
|
||||
void openForWrite(const char *);
|
||||
void write(MPI_Offset, int, double *);
|
||||
|
||||
@ -27,12 +27,12 @@ namespace LAMMPS_NS {
|
||||
class FixMSCG : public Fix {
|
||||
public:
|
||||
FixMSCG(class LAMMPS *, int, char **);
|
||||
~FixMSCG();
|
||||
int setmask();
|
||||
void post_constructor();
|
||||
void init();
|
||||
void end_of_step();
|
||||
void post_run();
|
||||
~FixMSCG() override;
|
||||
int setmask() override;
|
||||
void post_constructor() override;
|
||||
void init() override;
|
||||
void end_of_step() override;
|
||||
void post_run() override;
|
||||
|
||||
private:
|
||||
int range_flag, name_flag, me, nprocs;
|
||||
|
||||
@ -33,8 +33,8 @@ namespace LAMMPS_NS {
|
||||
class DumpNetCDF : public DumpCustom {
|
||||
public:
|
||||
DumpNetCDF(class LAMMPS *, int, char **);
|
||||
virtual ~DumpNetCDF();
|
||||
virtual void write();
|
||||
~DumpNetCDF() override;
|
||||
void write() override;
|
||||
|
||||
private:
|
||||
static constexpr int NC_FIELD_NAME_MAX = 100;
|
||||
@ -88,12 +88,12 @@ class DumpNetCDF : public DumpCustom {
|
||||
int cell_lengths_var;
|
||||
int cell_angles_var;
|
||||
|
||||
virtual void openfile();
|
||||
void openfile() override;
|
||||
void closefile();
|
||||
virtual void write_header(bigint);
|
||||
virtual void write_data(int, double *);
|
||||
void write_header(bigint) override;
|
||||
void write_data(int, double *) override;
|
||||
|
||||
virtual int modify_param(int, char **);
|
||||
int modify_param(int, char **) override;
|
||||
|
||||
void ncerr(int, const char *, int);
|
||||
};
|
||||
|
||||
@ -33,8 +33,8 @@ namespace LAMMPS_NS {
|
||||
class DumpNetCDFMPIIO : public DumpCustom {
|
||||
public:
|
||||
DumpNetCDFMPIIO(class LAMMPS *, int, char **);
|
||||
virtual ~DumpNetCDFMPIIO();
|
||||
virtual void write();
|
||||
~DumpNetCDFMPIIO() override;
|
||||
void write() override;
|
||||
|
||||
private:
|
||||
static constexpr int NC_MPIIO_FIELD_NAME_MAX = 100;
|
||||
@ -85,13 +85,13 @@ class DumpNetCDFMPIIO : public DumpCustom {
|
||||
int cell_lengths_var;
|
||||
int cell_angles_var;
|
||||
|
||||
virtual void openfile();
|
||||
void openfile() override;
|
||||
void closefile();
|
||||
void write_time_and_cell();
|
||||
virtual void write_data(int, double *);
|
||||
void write_data(int, double *) override;
|
||||
void write_prmtop();
|
||||
|
||||
virtual int modify_param(int, char **);
|
||||
int modify_param(int, char **) override;
|
||||
|
||||
void ncerr(int, const char *, int);
|
||||
};
|
||||
|
||||
@ -273,7 +273,7 @@ class voronoicell_neighbor : public voronoicell_base {
|
||||
* face that is clockwise from the jth edge. */
|
||||
int **ne;
|
||||
voronoicell_neighbor();
|
||||
~voronoicell_neighbor();
|
||||
~voronoicell_neighbor() override;
|
||||
void operator=(voronoicell_neighbor &c);
|
||||
/** Cuts the Voronoi cell by a particle whose center is at a
|
||||
* separation of (x,y,z) from the cell center. The value of rsq
|
||||
@ -321,7 +321,7 @@ class voronoicell_neighbor : public voronoicell_base {
|
||||
}
|
||||
void init(double xmin,double xmax,double ymin,double ymax,double zmin,double zmax);
|
||||
void check_facets();
|
||||
virtual void neighbors(std::vector<int> &v);
|
||||
void neighbors(std::vector<int> &v) override;
|
||||
|
||||
private:
|
||||
int *paux1;
|
||||
|
||||
@ -47,7 +47,7 @@ namespace {
|
||||
std::string message;
|
||||
public:
|
||||
explicit qeq_parser_error(const std::string &mesg) { message = mesg; }
|
||||
const char *what() const noexcept { return message.c_str(); }
|
||||
const char *what() const noexcept override { return message.c_str(); }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -27,18 +27,18 @@ namespace LAMMPS_NS {
|
||||
class FixQMMM : public Fix {
|
||||
public:
|
||||
FixQMMM(class LAMMPS *, int, char **);
|
||||
~FixQMMM();
|
||||
int setmask();
|
||||
void init();
|
||||
~FixQMMM() override;
|
||||
int setmask() override;
|
||||
void init() override;
|
||||
|
||||
// send up-to-date position information to QM and MM slave code
|
||||
void post_integrate();
|
||||
void post_integrate() override;
|
||||
|
||||
// receive and update forces
|
||||
void setup(int);
|
||||
void post_force(int);
|
||||
void setup(int) override;
|
||||
void post_force(int) override;
|
||||
|
||||
double memory_usage();
|
||||
double memory_usage() override;
|
||||
|
||||
protected:
|
||||
void exchange_positions(); // communicate positions to QM and MM slave
|
||||
|
||||
@ -60,7 +60,7 @@ namespace ReaxFF {
|
||||
explicit control_parser_error(const std::string &format, const std::string &keyword) {
|
||||
message = fmt::format(format, keyword);
|
||||
}
|
||||
const char *what() const noexcept { return message.c_str(); }
|
||||
const char *what() const noexcept override { return message.c_str(); }
|
||||
};
|
||||
|
||||
// NOTE: this function is run on MPI rank 0 only
|
||||
|
||||
@ -47,7 +47,7 @@ namespace ReaxFF {
|
||||
std::string message;
|
||||
public:
|
||||
explicit ffield_parser_error(const std::string &mesg) { message = mesg; }
|
||||
const char *what() const noexcept { return message.c_str(); }
|
||||
const char *what() const noexcept override { return message.c_str(); }
|
||||
};
|
||||
|
||||
void Read_Force_Field(const char *filename, reax_interaction *reax,
|
||||
|
||||
@ -27,12 +27,12 @@ namespace LAMMPS_NS {
|
||||
class MinSpin : public Min {
|
||||
public:
|
||||
MinSpin(class LAMMPS *);
|
||||
~MinSpin() {}
|
||||
void init();
|
||||
void setup_style();
|
||||
int modify_param(int, char **);
|
||||
void reset_vectors();
|
||||
int iterate(int);
|
||||
|
||||
void init() override;
|
||||
void setup_style() override;
|
||||
int modify_param(int, char **) override;
|
||||
void reset_vectors() override;
|
||||
int iterate(int) override;
|
||||
double evaluate_dt();
|
||||
void advance_spins(double);
|
||||
|
||||
|
||||
@ -27,12 +27,12 @@ namespace LAMMPS_NS {
|
||||
class MinSpinCG : public Min {
|
||||
public:
|
||||
MinSpinCG(class LAMMPS *);
|
||||
virtual ~MinSpinCG();
|
||||
void init();
|
||||
void setup_style();
|
||||
void reset_vectors();
|
||||
int modify_param(int, char **);
|
||||
int iterate(int);
|
||||
~MinSpinCG() override;
|
||||
void init() override;
|
||||
void setup_style() override;
|
||||
void reset_vectors() override;
|
||||
int modify_param(int, char **) override;
|
||||
int iterate(int) override;
|
||||
|
||||
private:
|
||||
int local_iter; // for neb
|
||||
|
||||
@ -27,12 +27,12 @@ namespace LAMMPS_NS {
|
||||
class MinSpinLBFGS : public Min {
|
||||
public:
|
||||
MinSpinLBFGS(class LAMMPS *);
|
||||
virtual ~MinSpinLBFGS();
|
||||
void init();
|
||||
void setup_style();
|
||||
int modify_param(int, char **);
|
||||
void reset_vectors();
|
||||
int iterate(int);
|
||||
~MinSpinLBFGS() override;
|
||||
void init() override;
|
||||
void setup_style() override;
|
||||
int modify_param(int, char **) override;
|
||||
void reset_vectors() override;
|
||||
int iterate(int) override;
|
||||
|
||||
private:
|
||||
int local_iter; // for neb
|
||||
|
||||
@ -33,15 +33,15 @@ namespace LAMMPS_NS {
|
||||
class ComputeVoronoi : public Compute {
|
||||
public:
|
||||
ComputeVoronoi(class LAMMPS *, int, char **);
|
||||
~ComputeVoronoi();
|
||||
void init();
|
||||
void compute_peratom();
|
||||
void compute_vector();
|
||||
void compute_local();
|
||||
double memory_usage();
|
||||
~ComputeVoronoi() override;
|
||||
void init() override;
|
||||
void compute_peratom() override;
|
||||
void compute_vector() override;
|
||||
void compute_local() override;
|
||||
double memory_usage() override;
|
||||
|
||||
int pack_forward_comm(int, int *, double *, int, int *);
|
||||
void unpack_forward_comm(int, int, double *);
|
||||
int pack_forward_comm(int, int *, double *, int, int *) override;
|
||||
void unpack_forward_comm(int, int, double *) override;
|
||||
|
||||
private:
|
||||
voro::container *con_mono;
|
||||
|
||||
Reference in New Issue
Block a user