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

Commit

Permalink
Switched back to opening bin.nc in write mode and keeping it open whe…
Browse files Browse the repository at this point in the history
…n reading it in on a restart
  • Loading branch information
daminton committed Oct 26, 2021
1 parent 7f95561 commit 46f0fa3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/netcdf/netcdf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module function netcdf_get_old_t_final_system(self, param) result(old_t_final)
real(DP), dimension(1) :: val
real(DP) :: KE_orb_orig, KE_spin_orig, PE_orig, Ltmp

call param%nciu%open(param, readonly=.true.)
call param%nciu%open(param)
call check( nf90_inquire_dimension(param%nciu%ncid, param%nciu%time_dimid, len=itmax) )
call check( nf90_inquire_dimension(param%nciu%ncid, param%nciu%id_dimid, len=idmax) )
allocate(vals(idmax))
Expand Down Expand Up @@ -110,7 +110,6 @@ module function netcdf_get_old_t_final_system(self, param) result(old_t_final)
end if

deallocate(vals)
call param%nciu%close()

return
end function netcdf_get_old_t_final_system
Expand Down

0 comments on commit 46f0fa3

Please sign in to comment.