Skip to content

Commit

Permalink
add units and calendar to time_bounds variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Courtney Peverley committed Oct 17, 2023
1 parent 8aa7437 commit 57fc39c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/control/cam_history.F90
Original file line number Diff line number Diff line change
Expand Up @@ -4476,6 +4476,9 @@ subroutine h_define (t, restart)

ierr=pio_def_var (tape(t)%Files(f),'time_bounds',pio_double,(/bnddim,timdim/),tape(t)%tbndid)
ierr=pio_put_att (tape(t)%Files(f), tape(t)%tbndid, 'long_name', 'time interval endpoints')
str = 'days since ' // date2yyyymmdd(nbdate) // ' ' // sec2hms(nbsec)
ierr=pio_put_att (tape(t)%Files(f), tape(t)%tbndid, 'units', trim(str))
ierr=pio_put_att (tape(t)%Files(f), tape(t)%tbndid, 'calendar', trim(calendar))
!
! Character
!
Expand Down

0 comments on commit 57fc39c

Please sign in to comment.