linux - 错误 : 'b' argument of 'sign' intrinsic at (1) must be the same type and kind as 'a'

标签 linux fortran gfortran fortran90 fortran77

我是 Fortran 新手。所以我需要帮助。 我在 SUSE 上使用 gfortran 编译我的代码并收到以下错误:

DELTAL = SIGN (.1,(GFIX-GAMFLT))

1

Error: 'b' argument of 'sign' intrinsic at (1) must be the same type and kind as 'a'

代码的主要文件附在下面的链接中,其中 3509 行显示错误

https://files.engineering.com/getfile.aspx?folder=d55e28c0-10bf-4c50-b07f-c1de071c9567&file=sftol.f

如何解决这个问题?

最佳答案

这个问题最终解决如下:

DELTAL = SIGN (0.1D0,(GFIX-GAMFLT))

这似乎保留了原始代码的基本数据类型。它编译成功。

感谢大家的建议。

关于linux - 错误 : 'b' argument of 'sign' intrinsic at (1) must be the same type and kind as 'a' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51732418/

相关文章:

Linux, python 3 : syntax error on commandline but not in ipython %run command

linux - "kill 0"和 "kill -‍- -$$"有什么区别?

python - (1) 处的外部函数 ‘f’ 在 f2py 的子例程中没有隐式类型

fortran - 如何使用 fortran 的扩展函数按 block 而不是按列复制数组?

symlink - ld : library not found for -lgfortran - Mac Symlink issue?

fortran - GNU Fortran - 控制符号大小写

linux - Linux Loadable 和内置模块的区别

linux - 在bash中用另一个数字替换一个数字

module - 模块中的意外赋值语句

c++ - 使用 gfortran 链接 c++ 时 std::basic_string 的 undefined symbol ?