From 0fc24debde4f67ab21f51384017b4f01a8b67312 Mon Sep 17 00:00:00 2001 From: David A Minton Date: Mon, 2 Jan 2023 23:51:55 -0500 Subject: [PATCH] Fixed it so if this is a restart run, the swiftest.log file gets appended instead of replaced --- src/swiftest/swiftest_io.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swiftest/swiftest_io.f90 b/src/swiftest/swiftest_io.f90 index d594a89bc..21b52b714 100644 --- a/src/swiftest/swiftest_io.f90 +++ b/src/swiftest/swiftest_io.f90 @@ -2769,7 +2769,7 @@ module subroutine swiftest_io_set_display_param(self, display_style) self%display_unit = OUTPUT_UNIT !! stdout from iso_fortran_env self%log_output = .false. case ('COMPACT', 'PROGRESS') - open(unit=SWIFTEST_LOG_OUT, file=SWIFTEST_LOG_FILE, status='replace', err = 667, iomsg = errmsg) + open(unit=SWIFTEST_LOG_OUT, file=SWIFTEST_LOG_FILE, status=self%out_stat, err = 667, iomsg = errmsg) self%display_unit = SWIFTEST_LOG_OUT self%log_output = .true. case default