Skip to content

Commit

Permalink
update w3init to expand section in PIO switches
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaMeixner-NOAA committed Nov 22, 2024
1 parent f528003 commit 615236b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions model/src/w3initmd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@ SUBROUTINE W3INIT ( IMOD, IsMulti, FEXT, MDS, MTRACE, ODAT, FLGRD, FLGR2, FLGD,
! 3.a Read restart file
!
VA(:,:) = 0.
#ifdef W3_PIO
if (use_restartnc) then
if (runtype == 'continue' )then
call set_user_timestring(time,user_timestring)
Expand All @@ -974,21 +975,19 @@ SUBROUTINE W3INIT ( IMOD, IsMulti, FEXT, MDS, MTRACE, ODAT, FLGRD, FLGR2, FLGD,
if (restart_from_binary) then
call w3iors('READ', nds(6), sig(nk), imod, filename=trim(fname))
else
#ifdef W3_PIO
call read_restart(trim(fname), va=va, mapsta=mapsta, mapst2=mapst2)
#endif
end if
else
call extcde (60, msg="required restart file " // trim(fname) // " does not exist")
end if
else
#ifdef W3_PIO
call read_restart('none')
#endif
! mapst2 is module variable defined in read of mod_def; maptst is from 2.b above
flcold = .true.
end if
else
#endif

#ifdef W3_DEBUGCOH
CALL ALL_VA_INTEGRAL_PRINT(IMOD, "Before W3IORS call", 1)
#endif
Expand Down Expand Up @@ -1022,7 +1021,9 @@ SUBROUTINE W3INIT ( IMOD, IsMulti, FEXT, MDS, MTRACE, ODAT, FLGRD, FLGR2, FLGD,
#ifdef W3_TIMINGS
CALL PRINT_MY_TIME("After restart inits")
#endif
#ifdef W3_PIO
end if ! if (use_restartnc)
#endif
!
! 3.b Compare MAPSTA from grid and restart
!
Expand Down

0 comments on commit 615236b

Please sign in to comment.