登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
目录下有f_xpose.f及f_xpose.F90文件,程序需要使用mpirun运行.f文件,出错了,具体如下: f_xpose.f f_xpose.F90内容相同,大致如下: subroutine trans_z2x ( np, comm, dir, r_wordsize, i_wordsize, memorder, &
a, &
sd1, ed1, sd2, ed2, sd3, ed3, &
sp1, ep1, sp2, ep2, sp3, ep3, &
sm1, em1, sm2, em2, sm3, em3, &
ax, &
sp1x, ep1x, sp2x, ep2x, sp3x, ep3x, &
sm1x, em1x, sm2x, em2x, sm3x, em3x )
USE duplicate_of_driver_constants
implicit none
integer, intent(in) :: sd1, ed1, sd2, ed2, sd3, ed3, &
sp1, ep1, sp2, ep2, sp3, ep3, &
sm1, em1, sm2, em2, sm3, em3, &
sp1x, ep1x, sp2x, ep2x, sp3x, ep3x, &
运行命令:mpif90 -f90=pgf90 -o f_xpose.o -c f_xpose.F90 不出错 mpif90 -f90=pgf90 -o f_xpose.o -c f_xpose.f 出错 pgf90 -o f_xpose.o f_xpose.f 出错,和之前一样的错误
错误信息如下: f_xpose.f(3): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ) ,
subroutine trans_z2x ( np, comm, dir, r_wordsize, i_wordsize, memorder, &
-------------------------------------------------------------------------------^
f_xpose.f(4): error #5082: Syntax error, found ',' when expecting one of: ( % : . = => a, &
但是换另一台机器,两种运行命令都不出错。这是为什么呢?我想是不是机器自动使用默认的编译器,而不是运行命令是指定的呢?两台机器我都安装了pgi,mpi,不明白为什么运行时确实截然不同的结果!!! |