63 定义一个笛卡尔拓扑

BACKWARD FORWARD


  • MPI_Cart_create例程产生一个进程的笛卡尔分解,通过ndim参数给出维数。
  •    dims(1)    = 4 
       dims(2)    = 3 
       periods(1) = .false. 
       periods(2) = .false. 
       reorder    = .true. 
       ndim       = 2 
       call MPI_CART_CREATE( MPI_COMM_WORLD, ndim, dims,  
      $                      periods, reorder, comm2d, ierr ) 
    


    Copyright: NPACT BACKWARD FORWARD