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

Commit

Permalink
Added in time and space dimension coordinates to encounter dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 5, 2022
1 parent 3565093 commit 14d2859
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/symba/symba_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ module subroutine symba_io_encounter_initialize_output(self, param)

! Take the file out of define mode
call check( nf90_enddef(nciu%id), "symba_io_encounter_initialize_output nf90_enddef" )

! Add in the space dimension coordinates
call check( nf90_put_var(nciu%id, nciu%space_varid, nciu%space_coords, start=[1], count=[NDIM]), "symba_io_encounter_initialize_output nf90_put_var space" )
end associate

return
Expand Down
2 changes: 2 additions & 0 deletions src/symba/symba_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,8 @@ module subroutine symba_util_take_encounter_snapshot(self, param, t)

if (npl_snap + ntp_snap == 0) return

snapshot%t = t

! Save the snapshot
self%encounter_history%iframe = self%encounter_history%iframe + 1
call self%resize_storage(self%encounter_history%iframe)
Expand Down

0 comments on commit 14d2859

Please sign in to comment.