From 615236be21904e180c12c4babfde89fdb448a2cf Mon Sep 17 00:00:00 2001 From: Jessica Meixner Date: Fri, 22 Nov 2024 18:33:33 +0000 Subject: [PATCH] update w3init to expand section in PIO switches --- model/src/w3initmd.F90 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/model/src/w3initmd.F90 b/model/src/w3initmd.F90 index 68643ea20..da95068b3 100644 --- a/model/src/w3initmd.F90 +++ b/model/src/w3initmd.F90 @@ -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) @@ -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 @@ -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 !