From 206a5abd81cb3d93455e56efbd67ef8a7465d38c Mon Sep 17 00:00:00 2001 From: David A Minton Date: Thu, 19 Aug 2021 09:17:41 -0400 Subject: [PATCH] Fixed issue where dump files were not being written if there were no bodies of a given type --- src/io/io.f90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io/io.f90 b/src/io/io.f90 index ae23e15fe..7b7e568ed 100644 --- a/src/io/io.f90 +++ b/src/io/io.f90 @@ -214,8 +214,8 @@ module subroutine io_dump_system(self, param) call dump_param%dump(param_file_name) call self%cb%dump(dump_param) - if (self%pl%nbody > 0) call self%pl%dump(dump_param) - if (self%tp%nbody > 0) call self%tp%dump(dump_param) + call self%pl%dump(dump_param) + call self%tp%dump(dump_param) idx = idx + 1 if (idx > NDUMPFILES) idx = 1