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

Commit

Permalink
extra info on io read error
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Apr 25, 2023
1 parent e689a29 commit 89e6768
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/swiftest/swiftest_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1155,10 +1155,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"
write(*,*) "Recorded: ",npl
write(*,*) "Active : ",npl_check
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"
write(*,*) "Recorded: ",ntp
write(*,*) "Active : ",ntp_check
call base_util_exit(failure)
end if

Expand Down

0 comments on commit 89e6768

Please sign in to comment.