网络带宽测试工具

源代码在线查看: rand_vpe.f

软件大小: 99 K
上传用户: add505
关键词: 网络带宽 测试工具
下载地址: 免注册下载 普通下载 VIP

相关代码

				      Subroutine rand_vpe( npes, info, lst )				! ----------------------------------------------------------------------				      Use      numerics				      Implicit None				      Integer, Intent(In)                       :: npes				      Integer, Intent(Out), Dimension(0:npes-1) :: lst 				      Logical, Intent(Out), dimension(0:npes-1) :: info				      Integer, Dimension (0:(npes/2) - 1) :: pv				      Logical  :: f				      Integer  :: i, j, k, n, np 				      Real(l_) :: r				! ---------------------------------------------------------------------- 				      np = npes/2				      Do i = 0, np-1				         pv(i) = i + np				      End Do				      Do i = 0, np-1				         j = pv(i)				         Call random_number( Harvest = r )				         k = Int( r*(np-1) + 0.5_l_ )				         pv (i) = pv(k)				         pv (k) = j				      End Do				      Do i = 0, np - 1				         lst (i) = pv(i)				         lst (pv(i)) = i				         Call random_number( Harvest = r )				         n = Int( r + 0.5_l_ )				         f = .FALSE.				         if ( n == 0 ) f = .TRUE. 				         info (i) = f				         info(pv(i)) = .NOT. f				      End Do				! ---------------------------------------------------------------------- 				      End subroutine rand_vpe							

相关资源