Skip to content

Commit

Permalink
correct readd of rpointer timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Dec 9, 2024
1 parent 775ec1d commit 1d99282
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dshr/dshr_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,6 @@ subroutine dshr_restart_write(rpfile, case_name, model_name, inst_suffix, ymd, t
type(io_desc_t) :: pio_iodesc
integer :: oldmode
integer :: rcode
character(len=CS) :: lrpfile
character(*), parameter :: F00 = "('(dshr_restart_write) ',2a,2(i0,2x))"
!-------------------------------------------------------------------------------

Expand All @@ -1068,11 +1067,9 @@ subroutine dshr_restart_write(rpfile, case_name, model_name, inst_suffix, ymd, t

call shr_cal_datetod2string(date_str, ymd, tod)
write(rest_file_model ,"(7a)") trim(case_name),'.', trim(model_name),trim(inst_suffix),'.r.', trim(date_str),'.nc'
! temporarily turn off timestamp, remove this code and comment in alpha05c
lrpfile = rpfile(:len_trim(rpfile)-17)
! write restart info to rpointer file
if (my_task == main_task) then
open(newunit=nu, file=trim(lrpfile), form='formatted')
open(newunit=nu, file=trim(rpfile), form='formatted')
write(nu,'(a)') rest_file_model
close(nu)
write(logunit,F00)' writing ',trim(rest_file_model)
Expand Down

0 comments on commit 1d99282

Please sign in to comment.