Skip to content

Commit

Permalink
Add reading of binary restart with PIO for runtype=initial (#1359)
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaMeixner-NOAA authored Feb 5, 2025
1 parent af14207 commit 8e67627
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions model/src/w3initmd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -985,9 +985,20 @@ SUBROUTINE W3INIT ( IMOD, IsMulti, FEXT, MDS, MTRACE, ODAT, FLGRD, FLGR2, FLGD,
call extcde (60, msg="required restart file " // trim(fname) // " does not exist")
end if
else
call read_restart('none')
! mapst2 is module variable defined in read of mod_def; maptst is from 2.b above
flcold = .true.
if (restart_from_binary) then
call set_user_timestring(time,user_timestring)
fname = trim(user_restfname)//trim(user_timestring)
inquire(file=trim(fname), exist=exists)
if (exists) then
call w3iors('READ', nds(6), sig(nk), imod, filename=trim(fname))
else
call extcde (60, msg="required restart file " // trim(fname) // " does not exist")
end if
else
call read_restart('none')
! mapst2 is module variable defined in read of mod_def; maptst is from 2.b above
flcold = .true.
end if
end if
else
#endif
Expand Down

0 comments on commit 8e67627

Please sign in to comment.