Skip to content

Commit 73c2099

Browse files
committed
Correct energy callback
1 parent 4dd7c5b commit 73c2099

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function SpeciesList(species)
4949
end
5050

5151
Arianna.@callback function energy(system::Particles)
52-
return system.energy[1]
52+
return system.energy[1] / length(system)
5353
end
5454

5555
function volume_sphere(r, d::Int)

0 commit comments

Comments
 (0)