Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed energy term in the merger case
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 16, 2021
1 parent f9af5d7 commit b9d815e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/symba/symba_collision.f90
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ module function symba_collision_casemerge(system, param, family, x, v, mass, rad
pe = 0.0_DP
do j = 1, nfamily
do i = j + 1, nfamily
pe = pe - pl%mass(i) * pl%mass(j) / norm2(pl%xb(:, i) - pl%xb(:, j))
pe = pe - pl%Gmass(i) * pl%mass(j) / norm2(pl%xb(:, i) - pl%xb(:, j))
end do
end do
system%Ecollisions = system%Ecollisions + pe
Expand Down

0 comments on commit b9d815e

Please sign in to comment.