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

Commit

Permalink
Improved file handling in coarray mode
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Apr 25, 2023
1 parent 63b8010 commit 6dd5767
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/swiftest/swiftest_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3158,6 +3158,9 @@ module subroutine swiftest_io_write_frame_system(self, nc, param)
nc%file_name = param%outfile
if (lfirst) then
inquire(file=param%outfile, exist=fileExists)
#ifdef COARRAY
if (this_image() /= 1) param%out_stat = 'APPEND'
#endif

select case(param%out_stat)
case('APPEND')
Expand Down

0 comments on commit 6dd5767

Please sign in to comment.