Skip to content

Commit

Permalink
Merge pull request lammps#3949 from Yi-FanLi/pimd_langevin_fix_t_prim
Browse files Browse the repository at this point in the history
fix pimd/langevin: fix a small bug in the output of t_prim
  • Loading branch information
akohlmey authored Oct 21, 2023
2 parents 58d299d + 80f72e7 commit 1db5643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/REPLICA/fix_pimd_langevin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ void FixPIMDLangevin::compute_tote()

void FixPIMDLangevin::compute_t_prim()
{
t_prim = 1.5 * atom->natoms * np * force->boltz * temp - total_spring_energy;
t_prim = 1.5 * atom->natoms * np * force->boltz * temp - total_spring_energy * inverse_np;
}

/* ---------------------------------------------------------------------- */
Expand Down

0 comments on commit 1db5643

Please sign in to comment.