forked from lijiext/lammps
when computing only rotational temperature, we must not subtract the default n-dim extra DOFs
This commit is contained in:
parent
1725832b6c
commit
62b9fa22b8
|
@ -73,6 +73,11 @@ ComputeTempAsphere::ComputeTempAsphere(LAMMPS *lmp, int narg, char **arg) :
|
|||
} else error->all(FLERR,"Illegal compute temp/asphere command");
|
||||
}
|
||||
|
||||
// when computing only the rotational temperature,
|
||||
// do not remove DOFs for translation as set by default
|
||||
|
||||
if (mode == ROTATE) extra_dof = 0;
|
||||
|
||||
vector = new double[6];
|
||||
|
||||
}
|
||||
|
|
|
@ -67,6 +67,11 @@ ComputeTempSphere::ComputeTempSphere(LAMMPS *lmp, int narg, char **arg) :
|
|||
} else error->all(FLERR,"Illegal compute temp/sphere command");
|
||||
}
|
||||
|
||||
// when computing only the rotational temperature,
|
||||
// do not remove DOFs for translation as set by default
|
||||
|
||||
if (mode == ROTATE) extra_dof = 0;
|
||||
|
||||
vector = new double[6];
|
||||
|
||||
// error checks
|
||||
|
|
Loading…
Reference in New Issue