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

Commit

Permalink
Fixed it so if this is a restart run, the swiftest.log file gets appe…
Browse files Browse the repository at this point in the history
…nded instead of replaced
  • Loading branch information
daminton committed Jan 3, 2023
1 parent 589cb0e commit 0fc24de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swiftest/swiftest_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fc24de

Please sign in to comment.