@@ -961,6 +961,7 @@ SUBROUTINE W3INIT ( IMOD, IsMulti, FEXT, MDS, MTRACE, ODAT, FLGRD, FLGR2, FLGD,
961
961
! 3.a Read restart file
962
962
!
963
963
VA(:,:) = 0 .
964
+ #ifdef W3_PIO
964
965
if (use_restartnc) then
965
966
if (runtype == ' continue' )then
966
967
call set_user_timestring(time,user_timestring)
@@ -974,21 +975,19 @@ SUBROUTINE W3INIT ( IMOD, IsMulti, FEXT, MDS, MTRACE, ODAT, FLGRD, FLGR2, FLGD,
974
975
if (restart_from_binary) then
975
976
call w3iors(' READ' , nds(6 ), sig(nk), imod, filename= trim (fname))
976
977
else
977
- #ifdef W3_PIO
978
978
call read_restart(trim (fname), va= va, mapsta= mapsta, mapst2= mapst2)
979
- #endif
980
979
end if
981
980
else
982
981
call extcde (60 , msg= " required restart file " // trim (fname) // " does not exist" )
983
982
end if
984
983
else
985
- #ifdef W3_PIO
986
984
call read_restart(' none' )
987
- #endif
988
985
! mapst2 is module variable defined in read of mod_def; maptst is from 2.b above
989
986
flcold = .true.
990
987
end if
991
988
else
989
+ #endif
990
+
992
991
#ifdef W3_DEBUGCOH
993
992
CALL ALL_VA_INTEGRAL_PRINT(IMOD, " Before W3IORS call" , 1 )
994
993
#endif
@@ -1022,7 +1021,9 @@ SUBROUTINE W3INIT ( IMOD, IsMulti, FEXT, MDS, MTRACE, ODAT, FLGRD, FLGR2, FLGD,
1022
1021
#ifdef W3_TIMINGS
1023
1022
CALL PRINT_MY_TIME(" After restart inits" )
1024
1023
#endif
1024
+ #ifdef W3_PIO
1025
1025
end if ! if (use_restartnc)
1026
+ #endif
1026
1027
!
1027
1028
! 3.b Compare MAPSTA from grid and restart
1028
1029
!
0 commit comments