找回密码
 注册
Simdroid-非首页
查看: 92|回复: 2

[二次开发] fortran读取txt里面的数据

[复制链接]
发表于 2014-12-13 14:35:44 | 显示全部楼层 |阅读模式 来自 浙江杭州
用fortran读取一个txt文件里面的数据,txt里面6行6列,
do i=1,6
         read(10,*)num,nt11,nt12,nt13,nt14,nt15
执行到read这句话时总是报错,
ERROR in job messaging system: Error in connection to analysis
Error in job 1: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
Job 1 aborted due to errors.
哪位高人知道应该如何解决,我用的是.for文件。

发表于 2014-12-13 16:22:25 | 显示全部楼层 来自 黑龙江哈尔滨
Simdroid开发平台
本帖最后由 masher 于 2014-12-13 16:23 编辑

你确保你的fortran程序没有语法错误吗?
num可能定义的是整形
其他可能定义的是浮点型
回复 不支持

使用道具 举报

 楼主| 发表于 2014-12-13 16:46:13 | 显示全部楼层 来自 浙江杭州
masher 发表于 2014-12-13 16:22
你确保你的fortran程序没有语法错误吗?
num可能定义的是整形
其他可能定义的是浮点型

我的num是整型,其他是浮点。
我之前做过小测试,就是没有用子程序,而是直接在fortran窗口,按照这个语法来读取数据,可以运行,但用到abaqus里面就不行了。
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-4-18 13:27 , Processed in 0.031552 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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