Skip to content
Snippets Groups Projects
Commit 62b9fa22 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

when computing only rotational temperature, we must not subtract the default n-dim extra DOFs

parent 1725832b
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,11 @@ ComputeTempAsphere::ComputeTempAsphere(LAMMPS *lmp, int narg, char **arg) : ...@@ -73,6 +73,11 @@ ComputeTempAsphere::ComputeTempAsphere(LAMMPS *lmp, int narg, char **arg) :
} else error->all(FLERR,"Illegal compute temp/asphere command"); } 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]; vector = new double[6];
} }
......
...@@ -67,6 +67,11 @@ ComputeTempSphere::ComputeTempSphere(LAMMPS *lmp, int narg, char **arg) : ...@@ -67,6 +67,11 @@ ComputeTempSphere::ComputeTempSphere(LAMMPS *lmp, int narg, char **arg) :
} else error->all(FLERR,"Illegal compute temp/sphere command"); } 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]; vector = new double[6];
// error checks // error checks
......
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