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

Commit

Permalink
Fixed bug in which central body mass wass computed incorrectly from G…
Browse files Browse the repository at this point in the history
…*mass
  • Loading branch information
daminton committed Jun 15, 2021
1 parent 6ee560b commit 63ad803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ module subroutine io_read_cb_in(self, config)
open(unit = iu, file = config%incbfile, status = 'old', form = 'FORMATTED', iostat = ierr)
read(iu, *, iostat = ierr) val
self%Gmass = real(val, kind=DP)
self%mass = real(val / config%GU * val, kind=DP)
self%mass = real(val / config%GU, kind=DP)
read(iu, *, iostat = ierr) self%radius
read(iu, *, iostat = ierr) self%j2rp2
read(iu, *, iostat = ierr) self%j4rp4
Expand Down

0 comments on commit 63ad803

Please sign in to comment.