Simplified reset_extra_dof

This commit is contained in:
Stephen Sanderson
2021-03-17 16:23:04 +10:00
parent 97f90f1146
commit a3e204a99d

View File

@ -585,10 +585,7 @@ void ComputeTempProfile::bin_assign()
/* ---------------------------------------------------------------------- */
void ComputeTempProfile::reset_extra_dof() {
extra_dof = 0.0;
if (xflag == 0) extra_dof++;
if (yflag == 0) extra_dof++;
if (zflag == 0 && domain->dimension == 3) extra_dof++;
extra_dof = domain->dimension - nstreaming;
}
/* ---------------------------------------------------------------------- */