public pure subroutine cavity_fill_cover_frac(cover_frac, z_draft, nx, ny)
v1 ice-cover fraction: BINARY, 1 wherever there is any draft.
An area-blended calving front (a partially covered cell) is a
melt-physics decision, not a geometry one, so it is deliberately
left for the slice that needs it — the field exists now only so
that slice does not have to re-open the metrics lifecycle.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Variables
Type
Visibility
Attributes
Name
Initial
integer,
private
::
i
integer,
private
::
j
Source Code
pure subroutine cavity_fill_cover_frac(cover_frac,z_draft,nx,ny)!! v1 ice-cover fraction: BINARY, `1` wherever there is any draft.!! An area-blended calving front (a partially covered cell) is a!! melt-physics decision, not a geometry one, so it is deliberately!! left for the slice that needs it — the field exists now only so!! that slice does not have to re-open the metrics lifecycle.integer,intent(in)::nx,nyreal(wp),intent(out)::cover_frac(nx,ny)real(wp),intent(in)::z_draft(nx,ny)integer::i,jdo j=1,nydo i=1,nxif(z_draft(i,j)>0.0_wp)thencover_frac(i,j)=1.0_wpelsecover_frac(i,j)=0.0_wpend if end do end do end subroutine cavity_fill_cover_frac