Changed default tchain for FixNVTSllod
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4566 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -41,6 +41,11 @@ FixNVTSllod::FixNVTSllod(LAMMPS *lmp, int narg, char **arg) :
|
||||
if (pstat_flag)
|
||||
error->all("Pressure control can not be used with fix nvt/sllod");
|
||||
|
||||
// default values
|
||||
|
||||
if (mtchain_default_flag) mtchain = 1;
|
||||
|
||||
|
||||
// create a new compute temp style
|
||||
// id = fix-ID + temp
|
||||
|
||||
@ -110,10 +115,10 @@ void FixNVTSllod::nh_v_temp()
|
||||
|
||||
for (int i = 0; i < nlocal; i++) {
|
||||
if (mask[i] & groupbit) {
|
||||
temperature->remove_bias(i,v[i]);
|
||||
vdelu[0] = h_two[0]*v[i][0] + h_two[5]*v[i][1] + h_two[4]*v[i][2];
|
||||
vdelu[1] = h_two[1]*v[i][1] + h_two[3]*v[i][2];
|
||||
vdelu[2] = h_two[2]*v[i][2];
|
||||
temperature->remove_bias(i,v[i]);
|
||||
v[i][0] = v[i][0]*factor_eta - dthalf*vdelu[0];
|
||||
v[i][1] = v[i][1]*factor_eta - dthalf*vdelu[1];
|
||||
v[i][2] = v[i][2]*factor_eta - dthalf*vdelu[2];
|
||||
|
||||
Reference in New Issue
Block a user