public pure function ice_hlim_count(hlim) result(n)
Length of the LEADING run of non-sentinel (>= 0) entries in
&ocean_ice_nml hlim (PR-58). Contiguity matters here (unlike
apply_layer_rho_init’s bare count(>= 0)): a value AFTER the
first sentinel is silently dropped by this count, so
ice_hlim_spec_is_valid checks contiguity explicitly rather than
trusting the count alone.
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
::
k
Source Code
pure function ice_hlim_count(hlim)result(n)!! Length of the LEADING run of non-sentinel (>= 0) entries in!! `&ocean_ice_nml hlim` (PR-58). Contiguity matters here (unlike!! `apply_layer_rho_init`'s bare `count(>= 0)`): a value AFTER the!! first sentinel is silently dropped by this count, so!! `ice_hlim_spec_is_valid` checks contiguity explicitly rather than!! trusting the count alone.real(wp),intent(in)::hlim(:)integer::ninteger::kn=0do k=1,size(hlim)if(hlim(k)<0.0_wp)exitn=n+1end do end function ice_hlim_count