Skip to content

adam_fnl_field_kernels

ADAM, field class FNL kernels (FNL backend of field_object).

Source: src/lib/fnl/adam_fnl_field_kernels.F90

Dependencies

Contents

Subroutines

compute_q_gradient_dev

Compute gradient of q(ivar).

fortran
subroutine compute_q_gradient_dev(b, ni, nj, nk, ngc, dx, dy, dz, q_gpu, ivar, gradient)

Arguments

NameTypeIntentAttributesDescription
binteger(kind=I4P)inBlock index.
niinteger(kind=I4P)inGrid cells number in I direction.
njinteger(kind=I4P)inGrid cells number in J direction.
nkinteger(kind=I4P)inGrid cells number in K direction.
ngcinteger(kind=I4P)inGhost cells number.
dxreal(kind=R8P)inX space step.
dyreal(kind=R8P)inY space step.
dzreal(kind=R8P)inZ space step.
q_gpureal(kind=R8P)inField component to which apply gradient.
ivarinteger(kind=I4P)inGhost cells number.
gradientreal(kind=R8P)outMaximum gradient of q.

Call graph

compute_normL2_residuals_dev

Compute L2 norm of residuals.

fortran
subroutine compute_normL2_residuals_dev(ni, nj, nk, ngc, nv, blocks_number, dq_gpu, norm)

Arguments

NameTypeIntentAttributesDescription
niinteger(kind=I4P)inGrid cells number in I direction.
njinteger(kind=I4P)inGrid cells number in J direction.
nkinteger(kind=I4P)inGrid cells number in K direction.
ngcinteger(kind=I4P)inGhost grid number.
nvinteger(kind=I4P)inNumber of states variables.
blocks_numberinteger(kind=I4P)inNumber of blocks.
dq_gpureal(kind=R8P)inResiduals.
normreal(kind=R8P)inoutResiduals norm.

Call graph

populate_send_buffer_ghost_gpu_dev

Polulate send buffer ghost GPU.

fortran
subroutine populate_send_buffer_ghost_gpu_dev(ngc, comm_map_send_ghost_cell_gpu, send_buffer_ghost_gpu, q_gpu)

Arguments

NameTypeIntentAttributesDescription
ngcinteger(kind=I4P)inGhost cells number.
comm_map_send_ghost_cell_gpuinteger(kind=I8P)inpointerComm map, cell information.
send_buffer_ghost_gpureal(kind=R8P)inoutpointerSend buffer of ghost cells.
q_gpureal(kind=R8P)inoutField component to be updated.

Call graph

receive_recv_buffer_ghost_gpu_dev

Receive recv buffer ghost GPU.

fortran
subroutine receive_recv_buffer_ghost_gpu_dev(ngc, comm_map_recv_ghost_cell_gpu, recv_buffer_ghost_gpu, q_gpu)

Arguments

NameTypeIntentAttributesDescription
ngcinteger(kind=I4P)inGhost cells number.
comm_map_recv_ghost_cell_gpuinteger(kind=I8P)inpointerComm map, cell information.
recv_buffer_ghost_gpureal(kind=R8P)inoutpointerReceive buffer of ghost cells.
q_gpureal(kind=R8P)inoutField component to be updated.

Call graph

update_ghost_local_gpu_dev

Update (local) ghost cells.

fortran
subroutine update_ghost_local_gpu_dev(ngc, l_map_ghost_cell_gpu, q_gpu)

Arguments

NameTypeIntentAttributesDescription
ngcinteger(kind=I4P)inGhost cells number.
l_map_ghost_cell_gpuinteger(kind=I8P)inpointerLocal map of ghost cells.
q_gpureal(kind=R8P)inoutField component to be updated.

Call graph