diff --git a/mediator/med_phases_restart_mod.F90 b/mediator/med_phases_restart_mod.F90 index f3a83198e..705bf7ac5 100644 --- a/mediator/med_phases_restart_mod.F90 +++ b/mediator/med_phases_restart_mod.F90 @@ -492,8 +492,10 @@ subroutine med_phases_restart_write(gcomp, rc) call med_io_close(io_file, rc=rc) if (ChkErr(rc,__LINE__,u_FILE_u)) return #ifndef CESMCOUPLED - call log_restart_fh(nextTime, startTime, 'cmeps', rc=rc) - if (ChkErr(rc,__LINE__,u_FILE_u)) return + if (maintask) then + call log_restart_fh(nextTime, startTime, 'cmeps', rc=rc) + if (ChkErr(rc,__LINE__,u_FILE_u)) return + endif #endif endif