From 821a16fa36b9fa8c7c9bd81c94a385629e77e501 Mon Sep 17 00:00:00 2001 From: David A Minton Date: Tue, 13 Jul 2021 17:36:43 -0400 Subject: [PATCH] Reverted back to having no id for the central body to make sure the current job gets processed correctly --- python/swiftest/swiftest/io.py | 3 ++- src/io/io.f90 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/python/swiftest/swiftest/io.py b/python/swiftest/swiftest/io.py index ceab9a74f..caf1c0e39 100644 --- a/python/swiftest/swiftest/io.py +++ b/python/swiftest/swiftest/io.py @@ -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) diff --git a/src/io/io.f90 b/src/io/io.f90 index 2bb46ae0e..fc63456be 100644 --- a/src/io/io.f90 +++ b/src/io/io.f90 @@ -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)