结构体指针错误?
大家好!我的原始定义段:
type node
real(8) :: InletCoor(2)
real(8) :: ExitCoor(2)
integer :: BlockNo(2)
type(node),pointer :: afore
type(node),pointer :: next
end type node
type(node),pointer :: p,q
p.blockno=Injector!执行代码:
错误提示:
p.blockno=Injector 1
Error: Unclassifiable statement at (1)
为啥出错呢? 我已经定义了啊
请版主、高人指教啊,初学fortran,摸索中。。。。。
p%blockno=Injector
小数点是不标准的用法,可能你的编译器不允许。 非常感谢,调试没问题了!
页:
[1]