Must use explicit scope on virtual functions when called from constructor
This commit is contained in:
@ -58,7 +58,7 @@ ComputeSpin::ComputeSpin(LAMMPS *lmp, int narg, char **arg) :
|
||||
long_spin_flag = 0;
|
||||
precession_spin_flag = 0;
|
||||
|
||||
init();
|
||||
ComputeSpin::init();
|
||||
|
||||
allocate();
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ ComputeGyrationShape::ComputeGyrationShape(LAMMPS *lmp, int narg, char **arg) :
|
||||
// ID of compute gyration
|
||||
id_gyration = utils::strdup(arg[3]);
|
||||
|
||||
init();
|
||||
ComputeGyrationShape::init();
|
||||
|
||||
vector = new double[6];
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@ ComputeGyrationShapeChunk::ComputeGyrationShapeChunk(LAMMPS *lmp, int narg, char
|
||||
// ID of compute gyration
|
||||
id_gyration_chunk = utils::strdup(arg[3]);
|
||||
|
||||
init();
|
||||
ComputeGyrationShapeChunk::init();
|
||||
|
||||
array_flag = 1;
|
||||
size_array_cols = 6;
|
||||
|
||||
@ -44,7 +44,7 @@ ComputeAngmomChunk::ComputeAngmomChunk(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
idchunk = utils::strdup(arg[3]);
|
||||
|
||||
init();
|
||||
ComputeAngmomChunk::init();
|
||||
|
||||
// chunk-based data
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ ComputeCOMChunk::ComputeCOMChunk(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
idchunk = utils::strdup(arg[3]);
|
||||
|
||||
init();
|
||||
ComputeCOMChunk::init();
|
||||
|
||||
// chunk-based data
|
||||
|
||||
|
||||
@ -60,7 +60,7 @@ ComputeDipoleChunk::ComputeDipoleChunk(LAMMPS *lmp, int narg, char **arg) :
|
||||
else error->all(FLERR,"Illegal compute dipole/chunk command");
|
||||
}
|
||||
|
||||
init();
|
||||
ComputeDipoleChunk::init();
|
||||
|
||||
// chunk-based data
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ ComputeGyrationChunk::ComputeGyrationChunk(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
idchunk = utils::strdup(arg[3]);
|
||||
|
||||
init();
|
||||
ComputeGyrationChunk::init();
|
||||
|
||||
// optional args
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ ComputeInertiaChunk::ComputeInertiaChunk(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
idchunk = utils::strdup(arg[3]);
|
||||
|
||||
init();
|
||||
ComputeInertiaChunk::init();
|
||||
|
||||
// chunk-based data
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ ComputeMSDChunk::ComputeMSDChunk(LAMMPS *lmp, int narg, char **arg) :
|
||||
idchunk = utils::strdup(arg[3]);
|
||||
|
||||
firstflag = 1;
|
||||
init();
|
||||
ComputeMSDChunk::init();
|
||||
|
||||
// create a new fix STORE style for reference positions
|
||||
// id = compute-ID + COMPUTE_STORE, fix group = compute group
|
||||
|
||||
@ -48,7 +48,7 @@ ComputeOmegaChunk::ComputeOmegaChunk(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
idchunk = utils::strdup(arg[3]);
|
||||
|
||||
init();
|
||||
ComputeOmegaChunk::init();
|
||||
|
||||
// chunk-based data
|
||||
|
||||
|
||||
@ -36,7 +36,7 @@ ComputePropertyChunk::ComputePropertyChunk(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
idchunk = utils::strdup(arg[3]);
|
||||
|
||||
init();
|
||||
ComputePropertyChunk::init();
|
||||
|
||||
// parse values
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ ComputeTempChunk::ComputeTempChunk(LAMMPS *lmp, int narg, char **arg) :
|
||||
idchunk = utils::strdup(arg[3]);
|
||||
|
||||
biasflag = 0;
|
||||
init();
|
||||
ComputeTempChunk::init();
|
||||
|
||||
// optional per-chunk values
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ ComputeTorqueChunk::ComputeTorqueChunk(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
idchunk = utils::strdup(arg[3]);
|
||||
|
||||
init();
|
||||
ComputeTorqueChunk::init();
|
||||
|
||||
// chunk-based data
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ ComputeVCMChunk::ComputeVCMChunk(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
idchunk = utils::strdup(arg[3]);
|
||||
|
||||
init();
|
||||
ComputeVCMChunk::init();
|
||||
|
||||
// chunk-based data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user