主题:关于多为可变阵使用
num_a=26
NZ(NUM_A)=(/48,48,48,31,31,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,32/)
NR(NUM_A)=(/37,31,38,37,38,37,31,38,104,102,100,94,88,82,76,70,64,58,52,46,40,34,30,28,28,28/)
real,allocatable :: area(num_a,:,:)
do inum_a=1,num_a
allocate(area(num_a,0:nz(inum_a),0:nr(inum_a)))
。。。。。。
end do
这样定义为什么不行,请大家指点 指点,谢谢!
NZ(NUM_A)=(/48,48,48,31,31,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,3,3,4,4,4,32/)
NR(NUM_A)=(/37,31,38,37,38,37,31,38,104,102,100,94,88,82,76,70,64,58,52,46,40,34,30,28,28,28/)
real,allocatable :: area(num_a,:,:)
do inum_a=1,num_a
allocate(area(num_a,0:nz(inum_a),0:nr(inum_a)))
。。。。。。
end do
这样定义为什么不行,请大家指点 指点,谢谢!