git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13951 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2015-08-28 23:36:43 +00:00
parent 0f3d77ed75
commit 4e247c3b8c
7 changed files with 44 additions and 11 deletions

View File

@ -138,6 +138,10 @@ void FixTempBerendsen::end_of_step()
double t_current = temperature->compute_scalar();
double tdof = temperature->dof;
// there is nothing to do, if there are no degrees of freedom
if (tdof < 1) return;
if (t_current == 0.0)
error->all(FLERR,
"Computed temperature for fix temp/berendsen cannot be 0.0");