public function diag_mask_h_section(grid, j_row, i0, i1, name) result(m)
Horizontal section (test-only): one cell row at j = j_row,
spanning i ∈ [i0,i1]. Integrates transport across a constant-y
line (v_face_y_layer at j_row = meridional throughflow).
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
Source Code
function diag_mask_h_section(grid,j_row,i0,i1,name)result(m)!! Horizontal section (test-only): one cell row at `j = j_row`,!! spanning `i ∈ [i0,i1]`. Integrates transport across a constant-y!! line (`v_face_y_layer` at `j_row` = meridional throughflow).type(hgrid_t),intent(in)::gridinteger,intent(in)::j_row,i0,i1character(len=*),intent(in),optional::nametype(diag_mask_t)::minteger::im%name="h_section"if(present(name))m%name=namem%nx=grid%nx_totalm%ny=grid%ny_totalallocate(m%weight(m%nx,m%ny),source=0.0_wp)if(j_row>=1.and.j_row<=m%ny)then do i=max(1,i0),min(m%nx,i1)m%weight(i,j_row)=1.0_wpend do end if call recompute_total_area(m,grid%dx,grid%dy)end function diag_mask_h_section