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

Commit

Permalink
Merge branch 'debug' into IntelAdvisor
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Oct 14, 2021
2 parents 0815e28 + 44f6911 commit 7bc19ae
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/netcdf/netcdf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,14 @@ module function netcdf_get_old_t_final_system(self, param) result(old_t_final)
! Result
real(DP) :: old_t_final
! Internals
!class(swiftest_nbody_system), allocatable :: tmpsys
!class(swiftest_parameters), allocatable :: tmpparam
!integer(I4B) :: ierr
integer(I4B) :: itmax
real(DP), dimension(:), allocatable :: tvals



call check( nf90_open(param%outfile, NF90_NOWRITE, param%nciu%ncid) )
call param%nciu%open(param)
call check( nf90_inquire_dimension(param%nciu%ncid, param%nciu%time_dimid, len=itmax) )
allocate(tvals(itmax))
call check( nf90_inq_varid(param%nciu%ncid, TIME_DIMNAME, param%nciu%time_varid) )
call check( nf90_get_var(param%nciu%ncid, param%nciu%time_varid, tvals(:)) )
call check( nf90_close(param%nciu%ncid) )

old_t_final = tvals(itmax)

Expand Down

0 comments on commit 7bc19ae

Please sign in to comment.