2 ! PR56660 Fails to read NAMELIST with certain form array syntax
4 character(len
= 2) :: sname
8 type(ptracer
) , dimension(3) :: tracer
11 tracer(:) = ptracer('XXX', .false
.)
13 open (99, file
='nml_82.dat', status
="replace")
15 !write(99,*) " tracer(2) = 'bb' , .true."
16 write(99,*) " tracer(:) = 'aa' , .true."
17 write(99,*) " tracer(2) = 'bb' , .true."
22 close (99, status
="delete")
24 if (tracer(1)%sname
.ne
.'aa') STOP 1
25 if (.not
.tracer(1)%lini
) STOP 2
26 if (tracer(2)%sname
.ne
.'bb') STOP 3
27 if (.not
.tracer(2)%lini
) STOP 4
28 if (tracer(3)%sname
.ne
.'XX') STOP 5
29 if (tracer(3)%lini
) STOP 6