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

Commit

Permalink
Got rid of the consistency check for nplm. It's easier just to recomp…
Browse files Browse the repository at this point in the history
…ute it
  • Loading branch information
daminton committed Jan 9, 2023
1 parent dde82e5 commit 6947240
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/swiftest/swiftest_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ module function swiftest_io_netcdf_read_frame_system(self, nc, param) result(ier
! Return
integer(I4B) :: ierr !! Error code: returns 0 if the read is successful
! Internals
integer(I4B) :: i, idmax, npl_check, ntp_check, nplm_check, str_max, status, npl, ntp
integer(I4B) :: i, idmax, npl_check, ntp_check, str_max, status, npl, ntp
real(DP), dimension(:), allocatable :: rtemp
real(DP), dimension(:,:), allocatable :: vectemp
integer(I4B), dimension(:), allocatable :: itemp
Expand Down Expand Up @@ -999,21 +999,14 @@ module function swiftest_io_netcdf_read_frame_system(self, nc, param) result(ier

if (npl_check /= npl) then
write(*,*) "Error reading in NetCDF file: The recorded value of npl does not match the number of active massive bodies"
call base_util_exit(failure)
end if

if (ntp_check /= ntp) then
write(*,*) "Error reading in NetCDF file: The recorded value of ntp does not match the number of active test particles"
call base_util_exit(failure)
end if

if (param%lmtiny_pl) then
nplm_check = count(pack(rtemp,plmask) > param%GMTINY )
if (nplm_check /= pl%nplm) then
write(*,*) "Error reading in NetCDF file: The recorded value of nplm does not match the number of active fully interacting massive bodies"
call base_util_exit(failure)
end if
end if
if (param%lmtiny_pl) pl%nplm = count(pack(rtemp,plmask) > param%GMTINY )

! Now read in each variable and split the outputs by body type
if ((param%in_form == "XV") .or. (param%in_form == "XVEL")) then
Expand Down

0 comments on commit 6947240

Please sign in to comment.