Skip to content

Commit

Permalink
fix for ensemble runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriel Ramirez committed Mar 27, 2023
1 parent 2b78653 commit c292450
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/icebergs_fms2io.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,9 @@ subroutine read_restart_calving(bergs)

! Read stored ice
filename=trim(restart_input_dir)//'calving.res.nc'
if (open_file(fileobj, filename, "read", grd%domain)) then
! The call to get_instance_filename is required because this is not read in as a restart file
call get_instance_filename(filename, actual_filename)
if (open_file(fileobj, actual_filename, "read", grd%domain)) then
call register_axis_wrapper(fileobj)
if (verbose.and.mpp_pe().eq.mpp_root_pe()) write(*,'(2a)') &
'KID, read_restart_calving: reading ',filename
Expand Down

0 comments on commit c292450

Please sign in to comment.