Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <mpi.h>
  2.  
  3. MPI_COomm graph_comm;
  4. int nnodes=4;
  5. int index[4]={1,3,5,7};
  6. int edges[8]={1,3,0,2,1,3,0,2};
  7. int reorder=1;
  8. MPI_Graph_create(MPI_COMM_WORLD, nnodes, index, edges, reorder, graph_comm);
  9.  
  10. ------
  11.  
  12. #include <mpi.h>
  13.  
  14. MPI_COomm graph_comm;
  15. int nnodes=4;
  16. int index[4]={1,4,5,6};
  17. int edges[6]={1,0,2,3,1,1};
  18. int reorder=1;
  19. MPI_Graph_create(MPI_COMM_WORLD, nnodes, index, edges, reorder, graph_comm);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement