Fortran Coder

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

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

[复制链接]

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-5-2 20:23

Powered by Tencent X3.4

© 2013-2024 Tencent

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