private subroutine ocean_pressure_force_set_bathymetry(this, b)
Copy b(:, :) into this%b on the host. Must be called BEFORE
enter_data (the device copy is taken from the host values).
Issues no update device; to refresh post enter_data the
caller must issue !$acc update device(this%b) itself.
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
::
nx
integer,
private
::
ny
Source Code
subroutine ocean_pressure_force_set_bathymetry(this,b)!! Copy `b(:, :)` into `this%b` on the host. Must be called BEFORE!! `enter_data` (the device copy is taken from the host values).!! Issues no `update device`; to refresh post `enter_data` the!! caller must issue `!$acc update device(this%b)` itself.class(ocean_pressure_force_t),intent(inout)::thisreal(wp),intent(in)::b(:,:)integer::nx,ny,i,jnx=size(this%b,1)ny=size(this%b,2)if(size(b,1)/=nx.or.size(b,2)/=ny)then error stop"ocean_pressure_force_set_bathymetry: shape mismatch"end if do j=1,nydo i=1,nxthis%b(i,j)=b(i,j)end do end do end subroutine ocean_pressure_force_set_bathymetry