forked from lijiext/lammps
add (empty) read/write_restart_settings() functions to bond/angle/dihedral/improper base classes
This commit is contained in:
parent
f4df51763d
commit
b1a5444815
|
@ -46,6 +46,8 @@ class Angle : protected Pointers {
|
||||||
virtual double equilibrium_angle(int) = 0;
|
virtual double equilibrium_angle(int) = 0;
|
||||||
virtual void write_restart(FILE *) = 0;
|
virtual void write_restart(FILE *) = 0;
|
||||||
virtual void read_restart(FILE *) = 0;
|
virtual void read_restart(FILE *) = 0;
|
||||||
|
virtual void write_restart_settings(FILE *) {};
|
||||||
|
virtual void read_restart_settings(FILE *) {};
|
||||||
virtual void write_data(FILE *) {}
|
virtual void write_data(FILE *) {}
|
||||||
virtual double single(int, int, int, int) = 0;
|
virtual double single(int, int, int, int) = 0;
|
||||||
virtual double memory_usage();
|
virtual double memory_usage();
|
||||||
|
|
|
@ -48,6 +48,8 @@ class Bond : protected Pointers {
|
||||||
virtual double equilibrium_distance(int) = 0;
|
virtual double equilibrium_distance(int) = 0;
|
||||||
virtual void write_restart(FILE *) = 0;
|
virtual void write_restart(FILE *) = 0;
|
||||||
virtual void read_restart(FILE *) = 0;
|
virtual void read_restart(FILE *) = 0;
|
||||||
|
virtual void write_restart_settings(FILE *) {};
|
||||||
|
virtual void read_restart_settings(FILE *) {};
|
||||||
virtual void write_data(FILE *) {}
|
virtual void write_data(FILE *) {}
|
||||||
virtual double single(int, double, int, int, double &) = 0;
|
virtual double single(int, double, int, int, double &) = 0;
|
||||||
virtual double memory_usage();
|
virtual double memory_usage();
|
||||||
|
|
|
@ -45,6 +45,8 @@ class Dihedral : protected Pointers {
|
||||||
virtual void coeff(int, char **) = 0;
|
virtual void coeff(int, char **) = 0;
|
||||||
virtual void write_restart(FILE *) = 0;
|
virtual void write_restart(FILE *) = 0;
|
||||||
virtual void read_restart(FILE *) = 0;
|
virtual void read_restart(FILE *) = 0;
|
||||||
|
virtual void write_restart_settings(FILE *) {};
|
||||||
|
virtual void read_restart_settings(FILE *) {};
|
||||||
virtual void write_data(FILE *) {}
|
virtual void write_data(FILE *) {}
|
||||||
virtual double memory_usage();
|
virtual double memory_usage();
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,8 @@ class Improper : protected Pointers {
|
||||||
virtual void coeff(int, char **) = 0;
|
virtual void coeff(int, char **) = 0;
|
||||||
virtual void write_restart(FILE *) = 0;
|
virtual void write_restart(FILE *) = 0;
|
||||||
virtual void read_restart(FILE *) = 0;
|
virtual void read_restart(FILE *) = 0;
|
||||||
|
virtual void write_restart_settings(FILE *) {};
|
||||||
|
virtual void read_restart_settings(FILE *) {};
|
||||||
virtual void write_data(FILE *) {}
|
virtual void write_data(FILE *) {}
|
||||||
virtual double memory_usage();
|
virtual double memory_usage();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue