Fortran Coder

标题: error #7938: Character length argument mismatch. [打印本页]

作者: vidasll    时间: 2018-6-27 10:30
标题: error #7938: Character length argument mismatch.
如题,之前可以编译,后来重新打开后一直无法编译,求助!


作者: chiangtp    时间: 2018-6-27 13:20
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




欢迎光临 Fortran Coder (http://bbs.fcode.cn/) Powered by Discuz! X3.2