Skip to content

Commit

Permalink
Added ice_sheet_basins_static as a static diag field, rather than onl…
Browse files Browse the repository at this point in the history
…y having it as a dynamic field
  • Loading branch information
alex-huth committed Aug 15, 2024
1 parent c1ca6fb commit 734775d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/icebergs.F90
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ subroutine icebergs_init(bergs, &
logical, intent(in), optional :: fractional_area !< If true, ice_area contains cell area as fraction of entire spherical surface
! Local variables
type(icebergs_gridded), pointer :: grd => null()
integer :: nbonds, nbasins
logical :: check_bond_quality
integer :: nbonds, nbasins, id_class
logical :: check_bond_quality, lerr
integer :: stdlogunit, stderrunit

! Get the stderr and stdlog unit numbers
Expand Down Expand Up @@ -154,6 +154,9 @@ subroutine icebergs_init(bergs, &
! Reading the ice-sheet basins of origin for the bergs
if (bergs%use_berg_origin_basins) then
call read_ice_sheet_basins(bergs%grd)
id_class=register_static_field('icebergs', 'ice_sheet_basins_static', axes, &
'Static ice-sheet basins of origin for icebergs', 'none')
if (id_class>0) lerr=send_data(id_class, grd%ice_sheet_basins(grd%isc:grd%iec,grd%jsc:grd%jec))
else
bergs%nbasins=1
grd%ice_sheet_basins(:,:)=0.0
Expand Down

0 comments on commit 734775d

Please sign in to comment.