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

Commit

Permalink
passed argument ind to netcdf_read_particle_info_base
Browse files Browse the repository at this point in the history
  • Loading branch information
cwishard committed Sep 29, 2021
1 parent a3acd62 commit 906963e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/modules/swiftest_classes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1080,10 +1080,11 @@ module subroutine netcdf_read_hdr_system(self, iu, param)
class(swiftest_parameters), intent(inout) :: param !! Current run configuration parameters
end subroutine netcdf_read_hdr_system

module subroutine netcdf_read_particle_info_base(self, iu)
module subroutine netcdf_read_particle_info_base(self, iu, ind)
implicit none
class(swiftest_base), intent(inout) :: self !! Swiftest particle object
class(netcdf_parameters), intent(inout) :: iu !! Parameters used to identify a particular NetCDF dataset
integer(I4B), dimension(:), intent(in) :: ind !! Index mapping from netcdf to active particles
end subroutine netcdf_read_particle_info_base

module subroutine netcdf_write_frame_base(self, iu, param)
Expand Down
4 changes: 2 additions & 2 deletions src/netcdf/netcdf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -499,17 +499,17 @@ module subroutine netcdf_read_hdr_system(self, iu, param)
return
end subroutine netcdf_read_hdr_system

module subroutine netcdf_read_particle_info_base(self, iu)
module subroutine netcdf_read_particle_info_base(self, iu, ind)
!! author: Carlisle A. Wishard, Dana Singh, and David A. Minton
!!
!! Write all current particle to file
implicit none
! Arguments
class(swiftest_base), intent(inout) :: self !! Swiftest particle object
class(netcdf_parameters), intent(inout) :: iu !! Parameters used to identify a particular NetCDF dataset
integer(I4B), dimension(:), intent(in) :: ind !! Index mapping from netcdf to active particles
! Internals
integer(I4B) :: i, j, tslot, strlen, idslot, old_mode
integer(I4B), dimension(:), allocatable :: ind
character(len=:), allocatable :: charstring
character(len=NAMELEN) :: emptystr, lenstr
character(len=:), allocatable :: fmtlabel
Expand Down

0 comments on commit 906963e

Please sign in to comment.