Okay, can do!
For reference, I'm using WRFv4.5.2, in case there are changes to the file in question.
The change is extremely simple. In the file
- WRF/share/mediation_integrate.F
I added the following text starting at line 113
!----------------------------------------------------------------------
! Write history for other streams at restart - James Ruppert - October 2024
!----------------------------------------------------------------------
DO ialarm = first_auxhist, last_auxhist
IF ( (config_flags%restart) .AND. ( currTime .EQ. startTime ) .AND. ( config_flags%write_hist_at_0h_rst )) THEN
! output history at beginning of restart
CALL med_hist_out ( grid , ialarm, config_flags )
ENDIF
ENDDO
which should place this chunk of code in the following location as far as IF statements go:
IF( (WRFU_AlarmIsRinging( grid%alarms( HISTORY_ALARM ), rc=rc ) .AND. &
NOT HERE
ELSE IF ( (config_flags%restart) .AND. ( currTime .EQ. startTime ) .AND. &
HERE
ENDIF
Hope that helps!