initialize in constructor rather than header
This commit is contained in:
@ -90,6 +90,11 @@ FixPIMDLangevin::FixPIMDLangevin(LAMMPS *lmp, int narg, char **arg) :
|
||||
integrator = OBABO;
|
||||
thermostat = PILE_L;
|
||||
barostat = BZP;
|
||||
lj_epsilon = 1;
|
||||
lj_sigma = 1;
|
||||
lj_mass = 1;
|
||||
other_planck = 1;
|
||||
other_mvv2e = 1;
|
||||
fmass = 1.0;
|
||||
np = universe->nworlds;
|
||||
inverse_np = 1.0 / np;
|
||||
|
||||
@ -48,9 +48,9 @@ class FixPIMDLangevin : public Fix {
|
||||
double inverse_np; // 1.0/np
|
||||
double temp; // temperature
|
||||
double hbar; // Planck's constant
|
||||
double lj_epsilon = 1, lj_sigma = 1, lj_mass = 1; // LJ unit energy, length, and mass scales
|
||||
double other_planck = 1;
|
||||
double other_mvv2e = 1;
|
||||
double lj_epsilon, lj_sigma, lj_mass; // LJ unit energy, length, and mass scales
|
||||
double other_planck;
|
||||
double other_mvv2e;
|
||||
double kt; // k_B * temp
|
||||
double beta, beta_np; // beta = 1./kBT beta_np = 1./kBT/np
|
||||
int thermostat; // NHC or PILE_L
|
||||
|
||||
Reference in New Issue
Block a user