public subroutine bathymetry_fill_ghosts_array(b, grid)
Fill ghost-cell bathymetry by constant extrapolation from the
nearest interior cell. Deliberate duplicate of
rdb_bathymetry::fill_bathymetry_ghosts_array — see the module
docstring for why this module cannot use that one.
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
integer,
private
::
ng
integer,
private
::
nx
integer,
private
::
ny
Source Code
subroutine bathymetry_fill_ghosts_array(b,grid)!! Fill ghost-cell bathymetry by constant extrapolation from the!! nearest interior cell. Deliberate duplicate of!! `rdb_bathymetry::fill_bathymetry_ghosts_array` — see the module!! docstring for why this module cannot `use` that one.real(wp),intent(inout)::b(:,:)type(hgrid_t),intent(in)::gridinteger::ng,i,j,nx,nyng=grid%nghostnx=grid%nx_physny=grid%ny_phys! West and east ghost columnsdo j=1,grid%ny_totaldo i=1,ngb(i,j)=b(ng+1,j)! westb(ng+nx+i,j)=b(ng+nx,j)! eastend do end do! South and north ghost rows (corners already filled above)do j=1,ngdo i=1,grid%nx_totalb(i,j)=b(i,ng+1)! southb(i,ng+ny+j)=b(i,ng+ny)! northend do end do end subroutine bathymetry_fill_ghosts_array