Fortran Coder

程序调用完module后不再执行hou

查看数: 8867 | 评论数: 5 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2020-10-2 16:56

正文摘要:

module inversionModule     implicit none contains     ! 求交点     subroutine get_points(x_max, y_max, x_interval, y_interval, x1, y1, x2, y2, x_point, y_point)   & ...

回复

Transpose 发表于 2020-10-3 09:33:15
本帖最后由 Transpose 于 2020-10-3 09:35 编辑

编译选项加上 -Wall -fcheck=all 会发现第72行出现数组越界。Fortran数组下标是默认从1开始的,你的循环时从0开始的
Vintingb 发表于 2020-10-3 12:57:31
本帖最后由 Vintingb 于 2020-10-3 16:47 编辑
Transpose 发表于 2020-10-3 09:33
编译选项加上 -Wall -fcheck=all 会发现第72行出现数组越界。Fortran数组下标是默认从1开始的,你的循环时 ...

修改后,运行成功了,感谢
Vintingb 发表于 2020-10-3 12:28:00

ubuntu是64位
风平老涡 发表于 2020-10-3 01:52:23
Vintingb 发表于 2020-10-2 17:14
经过测试,同样代码在ubuntu下使用gfortran运行成功,但是在windows 10 下用mingw64 的gfortran运行没有结果, ...

ubuntu是32还是64?
Vintingb 发表于 2020-10-2 17:14:41
经过测试,同样代码在ubuntu下使用gfortran运行成功,但是在windows 10 下用mingw64 的gfortran运行没有结果,不知道是不是bug

捐赠本站|Archiver|关于我们 About Us|小黑屋|Fcode ( 京ICP备18005632-2号 )

GMT+8, 2024-5-5 06:42

Powered by Tencent X3.4

© 2013-2024 Tencent

快速回复 返回顶部 返回列表