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

Commit

Permalink
Updated snapshot system to use coarray version of nbody_system
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Mar 28, 2023
1 parent 7357bdf commit 2b62ee1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/swiftest/swiftest_module.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1659,11 +1659,15 @@ end subroutine swiftest_util_snapshot_save

module subroutine swiftest_util_snapshot_system(self, param, nbody_system, t, arg)
implicit none
class(swiftest_storage), intent(inout) :: self !! Swiftest storage object
class(swiftest_parameters), intent(inout) :: param !! Current run configuration parameters
class(swiftest_storage), intent(inout) :: self !! Swiftest storage object
class(swiftest_parameters), intent(inout) :: param !! Current run configuration parameters
#ifdef COARRAY
class(swiftest_nbody_system), intent(inout) :: nbody_system[*] !! Swiftest nbody system object to store
#else
class(swiftest_nbody_system), intent(inout) :: nbody_system !! Swiftest nbody system object to store
real(DP), intent(in), optional :: t !! Time of snapshot if different from nbody_system time
character(*), intent(in), optional :: arg !! Optional argument (needed for extended storage type used in encounter snapshots)
#endif
real(DP), intent(in), optional :: t !! Time of snapshot if different from nbody_system time
character(*), intent(in), optional :: arg !! Optional argument (needed for extended storage type used in encounter snapshots)
end subroutine swiftest_util_snapshot_system
end interface

Expand Down
4 changes: 4 additions & 0 deletions src/swiftest/swiftest_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3067,7 +3067,11 @@ module subroutine swiftest_util_snapshot_system(self, param, nbody_system, t, ar
! Arguments
class(swiftest_storage), intent(inout) :: self !! Swiftest storage object
class(swiftest_parameters), intent(inout) :: param !! Current run configuration parameters
#ifdef COARRAY
class(swiftest_nbody_system), intent(inout) :: nbody_system[*] !! Swiftest nbody system object to store
#else
class(swiftest_nbody_system), intent(inout) :: nbody_system !! Swiftest nbody system object to store
#endif
real(DP), intent(in), optional :: t !! Time of snapshot if different from nbody_system time
character(*), intent(in), optional :: arg !! Optional argument (needed for extended storage type used in collision snapshots)
! Internals
Expand Down

0 comments on commit 2b62ee1

Please sign in to comment.