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

Commit

Permalink
Fixed reading in test particles to take in name not id.
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Sep 13, 2021
1 parent 3f61053 commit 2e657b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
sim.param['T0'] = 0.0
sim.param['DT'] = 1.0
sim.param['TSTOP'] = 365.25e1
sim.param['ISTEP_OUT'] = 11
sim.param['ISTEP_OUT'] = 1
sim.param['ISTEP_DUMP'] = 1
sim.param['CHK_QMIN_COORD'] = "HELIO"
sim.param['CHK_QMIN'] = swiftest.RSun / swiftest.AU2M
Expand Down
4 changes: 2 additions & 2 deletions src/io/io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1202,13 +1202,13 @@ module function io_read_frame_body(self, iu, param) result(ierr)
else
read(iu, *, err = 667, iomsg = errmsg) name(i), val
end if
call self%info(i)%set_value(name=name(i))
self%Gmass(i) = real(val, kind=DP)
self%mass(i) = real(val / param%GU, kind=DP)
read(iu, *, err = 667, iomsg = errmsg) self%radius(i)
class is (swiftest_tp)
read(iu, *, err = 667, iomsg = errmsg) self%id(i)
read(iu, *, err = 667, iomsg = errmsg) name(i)
end select
call self%info(i)%set_value(name=name(i))

select case(param%in_form)
case (XV)
Expand Down

0 comments on commit 2e657b1

Please sign in to comment.