Skip to content

Commit

Permalink
correct exist and file_exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Oct 21, 2024
1 parent a0d1a92 commit 6074f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cicecore/cicedyn/infrastructure/io/io_pio2/ice_restart.F90
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ subroutine init_restart_read(ice_ic)
#ifdef CESMCOUPLED
write(pointer_file,'(a,i4.4,a,i2.2,a,i2.2,a,i5.5)') &
'rpointer.ice'//trim(inst_suffix)//'.',myear,'-',mmonth,'-',mday,'-',msec
inquire(file=pointer_file, file_exist=exist)
inquire(file=pointer_file, exist=file_exist)
if (.not. file_exist) pointer_file = 'rpointer.ice'//trim(inst_suffix)
#endif
open(nu_rst_pointer,file=pointer_file)
Expand Down

0 comments on commit 6074f27

Please sign in to comment.