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

Commit

Permalink
Reverted back to having no id for the central body to make sure the c…
Browse files Browse the repository at this point in the history
…urrent job gets processed correctly
  • Loading branch information
daminton committed Jul 13, 2021
1 parent a54a4ff commit 821a16f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/swiftest/swiftest/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@ def swiftest_stream(f, param):
npl = f.read_ints()
ntp = f.read_ints()
iout_form = f.read_reals('c')
cbid = f.read_ints()
#cbid = f.read_ints()
cbid = np.array([0])
Mcb = f.read_reals(np.float64)
Rcb = f.read_reals(np.float64)
J2cb = f.read_reals(np.float64)
Expand Down
2 changes: 1 addition & 1 deletion src/io/io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ module subroutine io_read_cb_in(self, param)
is_ascii = (param%in_type == 'ASCII')
if (is_ascii) then
open(unit = iu, file = param%incbfile, status = 'old', form = 'FORMATTED', iostat = ierr)
read(iu, *, iostat = ierr) self%id
!read(iu, *, iostat = ierr) self%id
read(iu, *, iostat = ierr) val
self%Gmass = real(val, kind=DP)
self%mass = real(val / param%GU, kind=DP)
Expand Down

0 comments on commit 821a16f

Please sign in to comment.