Skip to content
Snippets Groups Projects
Commit 87d59204 authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13346 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 400d10dc
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,7 @@ void ComputeTempAsphere::setup()
void ComputeTempAsphere::dof_compute()
{
fix_dof = modify->adjust_dof_fix(igroup);
adjust_dof_fix();
// 6 dof for 3d, 3 dof for 2d
// which dof are included also depends on mode
......@@ -267,7 +267,7 @@ double ComputeTempAsphere::compute_scalar()
MPI_Allreduce(&t,&scalar,1,MPI_DOUBLE,MPI_SUM,world);
if (dynamic || tempbias == 2) dof_compute();
if (tfactor == 0.0 && scalar != 0.0)
if (tfactor == 0.0 && atom->natoms != 0)
error->all(FLERR,"Temperature compute degrees of freedom < 0");
scalar *= tfactor;
return scalar;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment