dvbbs
收藏本页
联系我们
论坛帮助
dvbbs

>> Fortran语言开发经验交流
搜一搜相关精彩主题 
Fortran中文网Fortran中文网—Fortran语言经验交流Fortran语言开发经验交流 → [求助]【求助】运算fortran的问题,怀疑是不是MPI communication的时候出现问题

您是本帖的第 3932 个阅读者
平板 打印
标题:
[求助]【求助】运算fortran的问题,怀疑是不是MPI communication的时候出现问题
eugene
帅哥哟,离线,有人找我吗?
等级:新手上路
文章:1
积分:222
门派:无门无派
注册:2013年5月4日
 用支付宝给eugene付款或购买其商品,支付宝交易免手续费、安全、快捷! 点击这里发送电子邮件给eugene

发贴心情
[求助]【求助】运算fortran的问题,怀疑是不是MPI communication的时候出现问题
1. The program code is parallelizedand executed on a high performance computer cluster using 4 processors(by Intel Fortran compiler in Linux systems with OpenMPI)
接下来简单介绍一下程序:
1)        main.f90 是主程序,主要是调用其他程序
2)        主要的计算程序在thermodynamics.f90, tool.f90 and solver.f90
3)        Mpi.f90是communication between processes
4)        Ghostnode.f90是边界条件
5)        Input.f90主要是从input file里读取数据,output.f90就是输出计算结果,inti.f90主要是allocate数组
6)        Global.f90是定义的全局变量
现在我怀疑是不是MPI communication的时候出现问题,因为NaN的值出现在第一个processor的边界上,而且这个程序在自己的电脑(windows)下串行运行是OK的但是当我在超级计算机上必行运算时,程序就不行,然后我用DDT debug,发现在这里出现问题,如下图,然后我进一步check,发现变量xp有四个值是NaN, xp被计算用subroutineconvert_composition(ix,iy)。

2,By the way, 如果要运行这个程序的话需要:
Intel fotransompiler, intelmkl and open MPI.
3.source code 在src  file里, input file 里是需要读入的数据,结果会写在results file里。Makefile是用来compile code的。run.sh是PBS file.
程序在这里:http://pan.baidu.com/share/link?shareid=433689&uk=3305225013
十分感谢!
备注:问题也在这儿  http://emuch.net/bbs/viewthread.php?tid=5846918
[此贴子已经被作者于2013-5-4 15:28:08编辑过]
ip地址已设置保密
2013/5/4 15:26:21

网上贸易 创造奇迹! 阿里巴巴 Alibaba
Powered By Dvbbs Version 7.1.0 Sp1
Copyright ©2005 - 2008 www.fortran.cn
页面执行时间 0.09766 秒, 5 次数据查询
京ICP备05056801号