forked from lijiext/lammps
Merge branch 'fix_ave_chunk_cdof_bug' into collected-small-changes
This commit is contained in:
commit
1c43b4a4c3
|
@ -307,7 +307,9 @@ atoms in the chunk. The averaged output value for the chunk on the
|
|||
average over atoms across the entire *Nfreq* timescale. For the
|
||||
*density/number* and *density/mass* values, the volume (bin volume or
|
||||
system volume) used in the final normalization will be the volume at
|
||||
the final *Nfreq* timestep.
|
||||
the final *Nfreq* timestep. For the *temp* values, degrees of freedom and
|
||||
kinetic energy are summed separately across the entire *Nfreq* timescale, and
|
||||
the output value is calculated by dividing those two sums.
|
||||
|
||||
If the *norm* setting is *sample*\ , the chunk value is summed over
|
||||
atoms for each sample, as is the count, and an "average sample value"
|
||||
|
|
|
@ -869,7 +869,7 @@ void FixAveChunk::end_of_step()
|
|||
if (count_sum[m] > 0.0)
|
||||
for (j = 0; j < nvalues; j++) {
|
||||
if (which[j] == ArgInfo::TEMPERATURE) {
|
||||
values_sum[m][j] *= mvv2e / ((cdof + adof*count_sum[m]) * boltz);
|
||||
values_sum[m][j] *= mvv2e/((repeat*cdof + adof*count_sum[m])*boltz);
|
||||
} else if (which[j] == ArgInfo::DENSITY_NUMBER) {
|
||||
if (volflag == SCALAR) values_sum[m][j] /= chunk_volume_scalar;
|
||||
else values_sum[m][j] /= chunk_volume_vec[m];
|
||||
|
|
Loading…
Reference in New Issue