Skip to content

Commit 7e446e6

Browse files
committed
When write_hist_at_0h_rst=.true., will now apply to user-def streams
1 parent d66e442 commit 7e446e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

share/mediation_integrate.F

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ SUBROUTINE med_before_solve_io ( grid , config_flags )
110110
! output history at beginning of restart even if alarm is not ringing
111111
CALL med_hist_out ( grid , HISTORY_ALARM, config_flags )
112112
CALL WRFU_AlarmRingerOff( grid%alarms( HISTORY_ALARM ), rc=rc )
113+
!----------------------------------------------------------------------
114+
! Write history for other streams at restart - James Ruppert - October 2024
115+
!----------------------------------------------------------------------
116+
DO ialarm = first_auxhist, last_auxhist
117+
IF ( (config_flags%restart) .AND. ( currTime .EQ. startTime ) .AND. ( config_flags%write_hist_at_0h_rst )) THEN
118+
! output history at beginning of restart
119+
CALL med_hist_out ( grid , ialarm, config_flags )
120+
ENDIF
121+
ENDDO
113122
ENDIF
114123

115124
IF( WRFU_AlarmIsRinging( grid%alarms( INPUTOUT_ALARM ), rc=rc ) ) THEN

0 commit comments

Comments
 (0)