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

Commit

Permalink
adjustments to output for coarrays
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Apr 25, 2023
1 parent 89e6768 commit 756ae55
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions src/swiftest/swiftest_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2428,19 +2428,30 @@ module subroutine swiftest_io_param_reader(self, unit, iotype, v_list, iostat, i

iostat = 0

call param%set_display(param%display_style)
! Print the contents of the parameter file to standard output
if (.not.param%lrestart) call param%writer(unit = param%display_unit, iotype = "none", v_list = [0], iostat = iostat, iomsg = iomsg)
end associate

#ifdef COARRAY
end if ! this_image() == 1
call coparam%coclone()
select type(self)
#endif
select type(param => self)
type is (swiftest_parameters)
self = coparam
end select
#ifdef COARRAY
param = coparam
#endif
call param%set_display(param%display_style)

if (.not.param%lrestart) then
#ifdef COARRAY
if (this_image() == 1) then
#endif
call param%writer(unit = param%display_unit, iotype = "none", v_list = [0], iostat = iostat, iomsg = iomsg)
#ifdef COARRAY
end if !(this_image() == 1)
#endif
end if
! Print the contents of the parameter file to standard output
end select

return
667 continue
Expand Down

0 comments on commit 756ae55

Please sign in to comment.