文件名称:ex1.doc
介绍说明--下载内容来自于网络,使用问题请自行百度
1. compile:
mpicc seidel.c -o seidel
2. run:
mpirun -np 4 seidel
3. result:
Input of file "dataIn.txt"
3 4
9.000000 -1.000000 -1.000000 7.000000
-1.000000 8.000000 0.000000 7.000000
-1.000000 0.000000 9.000000 8.000000
0.000000 0.000000 1.000000
Output of result
in the 1 times total vaule = 0
in the 2 times total vaule = 0
in the 3 times total vaule = 0
in the 4 times total vaule = 3
x[0] = 0.999998
x[1] = 1.000000
x[2] = 1.000000
Iteration num = 4
mpicc seidel.c -o seidel
2. run:
mpirun -np 4 seidel
3. result:
Input of file "dataIn.txt"
3 4
9.000000 -1.000000 -1.000000 7.000000
-1.000000 8.000000 0.000000 7.000000
-1.000000 0.000000 9.000000 8.000000
0.000000 0.000000 1.000000
Output of result
in the 1 times total vaule = 0
in the 2 times total vaule = 0
in the 3 times total vaule = 0
in the 4 times total vaule = 3
x[0] = 0.999998
x[1] = 1.000000
x[2] = 1.000000
Iteration num = 4
相关搜索: datain
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ex1.doc
__MACOSX/
__MACOSX/._ex1.doc
__MACOSX/
__MACOSX/._ex1.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.