Fortran Coder

查看: 7403|回复: 1
打印 上一主题 下一主题

[子程序] error #7938: Character length argument mismatch.

[复制链接]

25

帖子

6

主题

0

精华

熟手

F 币
126 元
贡献
91 点
跳转到指定楼层
楼主
发表于 2018-6-27 10:30:09 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
如题,之前可以编译,后来重新打开后一直无法编译,求助!

分享到:  微信微信
收藏收藏 点赞点赞 点踩点踩

130

帖子

10

主题

0

精华

大师

F 币
617 元
贡献
372 点

贡献勋章管理勋章帅哥勋章元老勋章星光勋章规矩勋章

沙发
发表于 2018-6-27 13:20:08 | 只看该作者

回帖奖励 +1

https://stackoverflow.com/questi ... as-specified-length

Fortran 2003, 12.4.1.2 Actual arguments associated with dummy data objects:
If a scalar dummy argument is of type default character, the length len of the dummy argument shall be less than or equal to the length of the actual argument. The dummy argument becomes associated with the leftmost len characters of the actual argument.

解決方法之一:
SUBROUTINE WALL( u, text, ...)
  IMPLICIT NONE
  CHARACTER(*), INTENT(IN) :: text
您需要登录后才可以回帖 登录 | 极速注册

本版积分规则

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

GMT+8, 2024-4-19 11:26

Powered by Tencent X3.4

© 2013-2024 Tencent

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