MPI-Geometry

所属分类:超算/并行计算
开发工具:C/C++
文件大小:8KB
下载次数:7
上传日期:2009-08-24 10:43:28
上 传 者phoenix168
说明:  部分几何问题的MPI源码,包括包含、相交和凸壳问题。
(Some geometric problems MPI source code, including the inclusion, intersection and convex hull problems.)

文件列表:
17-2\intersect.c (5577, 2003-07-14)
17-3\c.c (15179, 2003-07-15)
17-1\including.c (2723, 2003-07-14)
17-2 (0, 2008-05-18)
17-3 (0, 2008-05-18)
17-1 (0, 2008-05-18)

编译:mpicc intersect.c Co intersect 运行:可以使用命令 mpirun Cnp SIZE intersect来运行该串匹配程序,其中SIZE是所使用的处理器个数,本实例中使用了SIZE=3个处理器。   mpirun Cnp 3 intersect 运行结果: 输入: please input first polygon please input the count of vetex:3 please input the vertex 3 2 2 5 4 3 please input second polygon please input the count of vetex:6 please input the vertex 0 1 1 -1 1 -2 6 2 5 4 1 4 输出: 两多边形相交 说明:输入顶点的(x,y)坐标时中间用空格隔开。

近期下载者

相关文件


收藏者