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

Commit

Permalink
Enabled reading in the collision_id as an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Oct 15, 2021
1 parent 66ad078 commit 561c697
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/netcdf/netcdf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -721,13 +721,13 @@ module subroutine netcdf_read_particle_info_system(self, iu, plmask, tpmask)
call tp%info(i)%set_value(origin_type=ctemp(tpind(i)))
end do

! call check( nf90_get_var(iu%ncid, iu%collision_id_varid, itemp) )
! do i = 1, npl
! call pl%info(i)%set_value(collision_id=itemp(plind(i)))
! end do
! do i = 1, ntp
! call tp%info(i)%set_value(collision_id=itemp(tpind(i)))
! end do
call check( nf90_get_var(iu%ncid, iu%collision_id_varid, itemp) )
do i = 1, npl
call pl%info(i)%set_value(collision_id=itemp(plind(i)))
end do
do i = 1, ntp
call tp%info(i)%set_value(collision_id=itemp(tpind(i)))
end do

call check( nf90_get_var(iu%ncid, iu%origin_time_varid, rtemp) )
call cb%info%set_value(origin_time=rtemp(1))
Expand Down

0 comments on commit 561c697

Please sign in to comment.