git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13951 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -133,6 +133,13 @@ void FixTempRescale::init()
|
||||
void FixTempRescale::end_of_step()
|
||||
{
|
||||
double t_current = temperature->compute_scalar();
|
||||
|
||||
// there is nothing to do, if there are no degrees of freedom
|
||||
|
||||
if (temperature->dof < 1) return;
|
||||
|
||||
// protect against division by zero.
|
||||
|
||||
if (t_current == 0.0)
|
||||
error->all(FLERR,"Computed temperature for fix temp/rescale cannot be 0.0");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user