Skip to content

Commit

Permalink
Merge pull request #13 from NickSzapiro-NOAA/patch-1
Browse files Browse the repository at this point in the history
Encapsulate init_is_restart_fh in ifndef CESMCOUPED
  • Loading branch information
jiandewang authored Jan 30, 2025
2 parents 6fff095 + b4ab917 commit a7f8fd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config_src/drivers/nuopc_cap/mom_cap.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2056,9 +2056,11 @@ subroutine ModelSetRunClock(gcomp, rc)
call ESMF_LogWrite(subname//" Restarts will be written at finalize only", ESMF_LOGMSG_INFO)
endif
endif
#ifndef CESMCOUPLED
call ESMF_TimeIntervalGet(dtimestep, s=dt_cpl, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
call init_is_restart_fh(mcurrTime, dt_cpl, is_root_pe(), restartfh_info)
#endif
endif

if (restart_mode == 'alarms') then
Expand Down

0 comments on commit a7f8fd5

Please sign in to comment.