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

Commit

Permalink
Fixed order in which radius is read in
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 5, 2021
1 parent f79e61a commit 46caf9e
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 @@ -794,14 +794,14 @@ module subroutine io_read_body_in(self, param)
end if
self%Gmass(i) = real(val, kind=DP)
self%mass(i) = real(val / param%GU, kind=DP)
if (param%lclose) read(iu, *, iostat=ierr, err=100) self%radius(i)
class is (swiftest_tp)
read(iu, *, iostat=ierr, err=100) self%id(i)
end select
read(iu, *, iostat=ierr, err=100) self%xh(1, i), self%xh(2, i), self%xh(3, i)
read(iu, *, iostat=ierr, err=100) self%vh(1, i), self%vh(2, i), self%vh(3, i)
select type (self)
class is (swiftest_pl)
if (param%lclose) read(iu, *, iostat=ierr, err=100) self%radius(i)
if (param%lrotation) then
read(iu, iostat=ierr, err=100) self%Ip(:, i)
read(iu, iostat=ierr, err=100) self%rot(:, i)
Expand Down

0 comments on commit 46caf9e

Please sign in to comment.