get the number of fragment per each of the client code
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mimic_communicator), | intent(inout) | :: | this | |||
integer, | intent(inout), | dimension(:) | :: | frag_count | number of fragments per code, return value |
subroutine get_fragment_count(this, frag_count)
class(mimic_communicator), intent(inout) :: this
!> number of fragments per code, return value
integer, dimension(:), intent(inout) :: frag_count
integer(kind=i32), target :: code_fragment_count
integer :: n_code
do n_code = 1, this%num_clients
call this%send_command(MCL_SEND_NUM_FRAGMENTS, n_code)
call mcl_receive(code_fragment_count, 1, MCL_DATA, n_code)
frag_count(n_code) = code_fragment_count
end do
end subroutine get_fragment_count