encode_copy_solution_reply_2d Subroutine

public subroutine encode_copy_solution_reply_2d(req_id, nx, ny, prim_names, header_bytes)

2D COPY_SOLUTION reply header: like the 1D encoder but with the grid shape (nx, ny) alongside n = nx*ny, so the client can reshape each offset block C-order to (ny, nx). Offsets are byte offsets in request order, one block of nx*ny little-endian float64 per primitive, packed i-fastest (x-contiguous) to match solution_gather_2d.write_global_field.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: req_id
integer, intent(in) :: nx
integer, intent(in) :: ny
character(len=*), intent(in) :: prim_names(:)
integer(kind=int8), intent(out), allocatable :: header_bytes(:)