Skip to content

Commit 65cca6d

Browse files
committed
more CESMCOUPLED ifdefs
1 parent 4181d46 commit 65cca6d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cicecore/cicedyn/infrastructure/io/io_pio2/ice_restart.F90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,14 @@ subroutine init_restart_write(filename_spec)
225225
if (my_task == master_task) then
226226
#ifdef CESMCOUPLED
227227
lpointer_file = 'rpointer.ice'//trim(inst_suffix)
228+
if (pointer_date) then
229+
! append date to pointer filename
230+
write(lpointer_file,'(a,i4.4,a,i2.2,a,i2.2,a,i5.5)') &
231+
trim(lpointer_file)//'.',myear,'-',mmonth,'-',mday,'-',msec
232+
end if
228233
#else
229234
lpointer_file = pointer_file
230235
#endif
231-
if (pointer_date) then
232-
! append date to pointer filename
233-
write(lpointer_file,'(a,i4.4,a,i2.2,a,i2.2,a,i5.5)') &
234-
trim(lpointer_file)//'.',myear,'-',mmonth,'-',mday,'-',msec
235-
end if
236236
open(nu_rst_pointer,file=lpointer_file)
237237
write(nu_rst_pointer,'(a)') filename
238238
close(nu_rst_pointer)

cicecore/shared/ice_restart_shared.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ module ice_restart_shared
2424

2525
character (len=char_len_long), public :: &
2626
pointer_file ! input pointer file for restarts
27-
27+
#ifdef CESMCOUPLED
2828
logical (kind=log_kind), public :: &
2929
pointer_date = .false. ! if true, append datestamp to pointer file
30-
30+
#endif
3131
character (len=char_len), public :: &
3232
restart_format , & ! format of restart files 'nc'
3333
restart_rearranger ! restart file rearranger, box or subset for pio

0 commit comments

Comments
 (0)