Proteus 发表于 2021-4-23 15:51:43

新手求助!!主程序使用模块的变量出现错误

我在一个module中定义了变量l0,在主程序中使用改变量时,出现了错误

主程序中的定义:
real(kind=8) l0

module中的定义:

real(kind=8) l0

错误:
错误        1       error #6401: The attributes of this name conflict with those made accessible by a USE statement.           F:\Bachelor\Graduation Paper\Programme\PlateV1\Slider-FEM\main.f90        38       


属性不是一样的吗,为什么会出错?求出大佬!!

fcode 发表于 2021-4-23 16:12:13

主程序中无需再次定义。

Proteus 发表于 2021-4-26 13:43:58

fcode 发表于 2021-4-23 16:12
主程序中无需再次定义。

已解决,感谢!!
页: [1]
查看完整版本: 新手求助!!主程序使用模块的变量出现错误