代码是这样子写的: real(4),allocatable :: a(:) na = 10 allocate(a(na)) namelist /indata/ a 结果报错,请问各位大虾,如何解决这个问题啊
2008/9/19 9:23:13
lm_lxt
等级:版主
文章:480
积分:3912
门派:无门无派
注册:2006年4月21日
第 2 楼
The following variables cannot be specified in a namelist group:
An array dummy argument with nonconstant bounds A variable with assumed character length An allocatable array An automatic object A pointer A variable of a type that has a pointer as an ultimate component A subobject of any of the above objects