Skip to content

Commit

Permalink
reshape/2
Browse files Browse the repository at this point in the history
  • Loading branch information
ceriottm committed Mar 22, 2024
1 parent ca08d36 commit bfe576b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipi/engine/motion/dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def pconstraints(self):
pcom = p.sum(axis=1)
dens = (pcom**2).sum()*0.5/Mnb # COM kinetic energy
pcom /= Mnb
self.beads.p -= (m3*pcom).reshape(nb,-1)
self.beads.p -= (m3*pcom.reshape(nb,-1,3)).reshape(nb,-1)

self.ensemble.eens += dens

Expand Down

0 comments on commit bfe576b

Please sign in to comment.