diff --git a/.gitmodules b/.gitmodules index e4fd1e83a3..b9d912dd7e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,8 +4,8 @@ branch = develop [submodule "WW3"] path = WW3 - url = https://github.com/NOAA-EMC/WW3 - branch = dev/ufs-weather-model + url = https://github.com/NickSzapiro-NOAA/WW3 + branch = restart_fh [submodule "stochastic_physics"] path = stochastic_physics url = https://github.com/NOAA-PSL/stochastic_physics diff --git a/CDEPS-interface/ufs/cdeps_share/shr_is_restart_fh_mod.F90 b/CDEPS-interface/ufs/cdeps_share/shr_is_restart_fh_mod.F90 index c6d7fb9677..862cf7ed66 100644 --- a/CDEPS-interface/ufs/cdeps_share/shr_is_restart_fh_mod.F90 +++ b/CDEPS-interface/ufs/cdeps_share/shr_is_restart_fh_mod.F90 @@ -51,7 +51,6 @@ subroutine init_is_restart_fh(currentTime, dtime, lLog) if (isPresent) then !model_configure exists. this is ufs run CF_mc = ESMF_ConfigCreate(rc=rc) call ESMF_ConfigLoadFile(config=CF_mc,filename='model_configure' ,rc=rc) - !if (ChkErr(rc,__LINE__,__FILE__)) return if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) return nfh = ESMF_ConfigGetLen(config=CF_mc, label ='restart_fh:',rc=rc) @@ -60,18 +59,15 @@ subroutine init_is_restart_fh(currentTime, dtime, lLog) allocate(restartFhTimes(1:nfh)) !not deallocated here call ESMF_ConfigGetAttribute(CF_mc,valueList=restart_fh,label='restart_fh:', rc=rc) - !if (ChkErr(rc,__LINE__,__FILE__)) return if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) return ! create a list of times at each restart_fh do n = 1,nfh fh_s = NINT(3600*restart_fh(n)) call ESMF_TimeIntervalSet(fhInterval, s=fh_s, rc=rc) - !if (ChkErr(rc,__LINE__,__FILE__)) return if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) return restartFhTimes(n) = currentTime + fhInterval call ESMF_TimePrint(restartFhTimes(n), options="string", & preString="restart_fh at ", unit=timestr, rc=rc) - !if (ChkErr(rc,__LINE__,__FILE__)) return if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) return if (lLog) then if (mod(fh_s,dtime) /= 0) then @@ -84,7 +80,6 @@ subroutine init_is_restart_fh(currentTime, dtime, lLog) deallocate(restart_fh) end if !nfh>0 call ESMF_ConfigDestroy(CF_mc, rc=rc) - !if (ChkErr(rc,__LINE__,__FILE__)) return if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) return end if !model_configure @@ -115,7 +110,6 @@ function is_restart_fh(clock) result(lWrite) ! check if next time is == to any restartfhtime do nfh = 1,size(restartFhTimes) call ESMF_ClockGetNextTime(clock, nextTime=nexttime, rc=rc) - !if (ChkErr(rc,__LINE__,__FILE__)) return if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) return if (nextTime == restartFhTimes(nfh)) write_restartfh = .true. end do diff --git a/WW3 b/WW3 index abe1e79e8d..f4d5d479c0 160000 --- a/WW3 +++ b/WW3 @@ -1 +1 @@ -Subproject commit abe1e79e8d4241178e5d31fac1c90b8cef2ee551 +Subproject commit f4d5d479c0d46f13943e4bfe3f6390b13e60060a diff --git a/tests/parm/model_configure.IN b/tests/parm/model_configure.IN index a112bc0a01..cb7637225a 100644 --- a/tests/parm/model_configure.IN +++ b/tests/parm/model_configure.IN @@ -9,6 +9,7 @@ fhrot: @[FHROT] dt_atmos: @[DT_ATMOS] restart_interval: @[RESTART_INTERVAL] +restart_fh: @[RESTART_FH] quilting: @[QUILTING] quilting_restart: @[QUILTING_RESTART] diff --git a/tests/tests/cpld_control_p8 b/tests/tests/cpld_control_p8 index f3cb8da89c..296b741446 100644 --- a/tests/tests/cpld_control_p8 +++ b/tests/tests/cpld_control_p8 @@ -78,6 +78,7 @@ export CCPP_SUITE=FV3_GFS_v17_coupled_p8_ugwpv1 export RESTART_N=12 export RESTART_INTERVAL="${RESTART_N} -1" export OUTPUT_FH='0 21 24' +export RESTART_FH="0.5 3" export MOM6_TOPOEDITS=ufs.topo_edits_011818.nc export MOM6_ALLOW_LANDMASK_CHANGES=True diff --git a/tests/tests/datm_cdeps_gfs b/tests/tests/datm_cdeps_gfs index 0ebec92171..9dcd4ed89b 100644 --- a/tests/tests/datm_cdeps_gfs +++ b/tests/tests/datm_cdeps_gfs @@ -6,10 +6,7 @@ export TEST_DESCR="DATM_CDEPS-MOM6-CICE-CMEPS_GFS - control " export CNTL_DIR=datm_cdeps_gfs -export LIST_FILES="RESTART/iced.2021-03-22-23400.nc \ - RESTART/DATM_GFS.cpl.r.2021-03-22-64800.nc \ - RESTART/20210322.090000.MOM.res.nc \ - RESTART/20210323.060000.MOM.res.nc \ +export LIST_FILES="RESTART/20210323.060000.MOM.res.nc \ RESTART/iced.2021-03-23-21600.nc \ RESTART/DATM_GFS.cpl.r.2021-03-23-21600.nc" @@ -31,7 +28,6 @@ export atm_datamode=GEFS export CICE_KTHERM=2 export CICE_TFREEZE_OPTION=mushy export RESTART_N=12 -export RESTART_FH="0.5 3" export stream_files="INPUT/gfs.202103.nc" export eps_imesh=2.5e-1 export MOM6_TOPOEDITS=ufs.topo_edits_011818.nc