add_scalar_x_face Subroutine

public subroutine add_scalar_x_face(f, c, i_plane, nx, ny, nz)

Adds a uniform constant c to a single x-normal plane (pencil index i_plane) of a DIR_X VERT field, in place.

Launch convention (matches field_set_x_face exactly): threads = dim3(64, 1, 1) blocks = dim3((SZ-1)/64 + 1, n_y_blocks*nz, 1) Threads beyond the real pencil width (SZ in interior y-blocks, n_mod in the last y-block) are masked out by the i_max guard.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(inout), device, dimension(:, :, :) :: f
real(kind=dp), intent(in), value :: c
integer, intent(in), value :: i_plane
integer, intent(in), value :: nx
integer, intent(in), value :: ny
integer, intent(in), value :: nz

Called by

proc~~add_scalar_x_face~~CalledByGraph proc~add_scalar_x_face m_cuda_kernels_fieldops::add_scalar_x_face proc~field_add_const_x_face_cuda m_cuda_backend::cuda_backend_t%field_add_const_x_face_cuda proc~field_add_const_x_face_cuda->proc~add_scalar_x_face