From 89e6768fa7135a39aac3f5515f5f54e3b0586a17 Mon Sep 17 00:00:00 2001 From: David A Minton Date: Mon, 24 Apr 2023 20:37:06 -0400 Subject: [PATCH] extra info on io read error --- src/swiftest/swiftest_io.f90 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/swiftest/swiftest_io.f90 b/src/swiftest/swiftest_io.f90 index a9763dc28..6028676a3 100644 --- a/src/swiftest/swiftest_io.f90 +++ b/src/swiftest/swiftest_io.f90 @@ -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