From b4ab917442e949ddc9fee4ce2e1ad238b2bfc6e6 Mon Sep 17 00:00:00 2001 From: Nicholas Szapiro <149816583+NickSzapiro-NOAA@users.noreply.github.com> Date: Thu, 30 Jan 2025 16:02:40 -0500 Subject: [PATCH] Encapsulate init_is_restart_fh in ifndef CESMCOUPED in config_src/drivers/nuopc_cap/mom_cap.F90 --- config_src/drivers/nuopc_cap/mom_cap.F90 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config_src/drivers/nuopc_cap/mom_cap.F90 b/config_src/drivers/nuopc_cap/mom_cap.F90 index c761fb3414..a9d4c688f8 100644 --- a/config_src/drivers/nuopc_cap/mom_cap.F90 +++ b/config_src/drivers/nuopc_cap/mom_cap.F90 @@ -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