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

Commit

Permalink
added start_encounter and stop_encounter implementation templates
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 6, 2022
1 parent bdb75a2 commit f8c4c22
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/symba_classes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -419,20 +419,20 @@ end subroutine symba_util_take_encounter_snapshot

module subroutine symba_io_encounter_dump(self, param)
implicit none
class(symba_encounter_storage(*)), intent(inout) :: self !! Encounter storage object
class(swiftest_parameters), intent(inout) :: param !! Current run configuration parameters
class(symba_encounter_storage(*)), intent(inout) :: self !! Encounter storage object
class(swiftest_parameters), intent(inout) :: param !! Current run configuration parameters
end subroutine symba_io_encounter_dump

module subroutine symba_io_encounter_initialize_output(self, param)
implicit none
class(symba_io_encounter_parameters), intent(inout) :: self !! Parameters used to identify a particular NetCDF dataset
class(swiftest_parameters), intent(in) :: param
class(swiftest_parameters), intent(in) :: param
end subroutine symba_io_encounter_initialize_output

module subroutine symba_io_encounter_write_frame(self, nc, param)
implicit none
class(symba_encounter_snapshot), intent(in) :: self !! Swiftest encounter structure
class(symba_io_encounter_parameters), intent(inout) :: nc !! Parameters used to identify a particular encounter io NetCDF dataset
class(symba_io_encounter_parameters), intent(inout) :: nc !! Parameters used to identify a particular encounter io NetCDF dataset
class(swiftest_parameters), intent(inout) :: param !! Current run configuration parameters
end subroutine symba_io_encounter_write_frame

Expand Down
26 changes: 26 additions & 0 deletions src/symba/symba_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,32 @@ module subroutine symba_io_param_writer(self, unit, iotype, v_list, iostat, ioms
write(*,*) "Error writing parameter file for SyMBA: " // trim(adjustl(iomsg))
end subroutine symba_io_param_writer

module subroutine symba_io_start_encounter(self, param, t)
!! author: David A. Minton
!!
!! Initializes the new encounter and/or fragmentation save file(s)
implicit none
! Arguments
class(symba_nbody_system), intent(inout) :: self !! SyMBA nbody system object
class(symba_parameters), intent(inout) :: param !! Current run configuration parameters
real(DP), intent(in) :: t !! Current simulation time

return
end subroutine symba_io_start_encounter

module subroutine symba_io_stop_encounter(self, param, t)
!! author: David A. Minton
!!
!! Saves the encounter and/or fragmentation data to file(s)
implicit none
! Arguments
class(symba_nbody_system), intent(inout) :: self !! SyMBA nbody system object
class(symba_parameters), intent(inout) :: param !! Current run configuration parameters
real(DP), intent(in) :: t !! Current simulation time

return
end subroutine symba_io_stop_encounter


module subroutine symba_io_write_discard(self, param)
!! author: David A. Minton
Expand Down

0 comments on commit f8c4c22

Please sign in to comment.