Skip to content

Commit 615236b

Browse files
update w3init to expand section in PIO switches
1 parent f528003 commit 615236b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

model/src/w3initmd.F90

+5-4
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,7 @@ SUBROUTINE W3INIT ( IMOD, IsMulti, FEXT, MDS, MTRACE, ODAT, FLGRD, FLGR2, FLGD,
961961
! 3.a Read restart file
962962
!
963963
VA(:,:) = 0.
964+
#ifdef W3_PIO
964965
if (use_restartnc) then
965966
if (runtype == 'continue' )then
966967
call set_user_timestring(time,user_timestring)
@@ -974,21 +975,19 @@ SUBROUTINE W3INIT ( IMOD, IsMulti, FEXT, MDS, MTRACE, ODAT, FLGRD, FLGR2, FLGD,
974975
if (restart_from_binary) then
975976
call w3iors('READ', nds(6), sig(nk), imod, filename=trim(fname))
976977
else
977-
#ifdef W3_PIO
978978
call read_restart(trim(fname), va=va, mapsta=mapsta, mapst2=mapst2)
979-
#endif
980979
end if
981980
else
982981
call extcde (60, msg="required restart file " // trim(fname) // " does not exist")
983982
end if
984983
else
985-
#ifdef W3_PIO
986984
call read_restart('none')
987-
#endif
988985
! mapst2 is module variable defined in read of mod_def; maptst is from 2.b above
989986
flcold = .true.
990987
end if
991988
else
989+
#endif
990+
992991
#ifdef W3_DEBUGCOH
993992
CALL ALL_VA_INTEGRAL_PRINT(IMOD, "Before W3IORS call", 1)
994993
#endif
@@ -1022,7 +1021,9 @@ SUBROUTINE W3INIT ( IMOD, IsMulti, FEXT, MDS, MTRACE, ODAT, FLGRD, FLGR2, FLGD,
10221021
#ifdef W3_TIMINGS
10231022
CALL PRINT_MY_TIME("After restart inits")
10241023
#endif
1024+
#ifdef W3_PIO
10251025
end if ! if (use_restartnc)
1026+
#endif
10261027
!
10271028
! 3.b Compare MAPSTA from grid and restart
10281029
!

0 commit comments

Comments
 (0)