Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29278 Discussions

Watching an allocatable array of a derived type

tmadden
Beginner
639 Views

Code:

	Type CZtype !(C)ommercial (Z)one 
	  Sequence
	  Integer :: EL, GL !(E)mpty or (G)ap (L)imit
	End Type CZtype

        Type(CZtype), Allocatable :: cz(:) !Lookup by Commercial Zone
      
      Read(6,*) czUB
      allocate(CZ(czUB))
      Do i = 1,czUB
        !cz(i) = czType(0,0)
        cz(i)%EL = 0
        Print *, cz(i)%EL
        cz(i)%GL = 2
        Print *, cz(i)%GL
      End Do


Hi, I'm running Version 8.1.2279.2003 for Windows.

I just finished switching all of my arrays to be allocatable in a fairly large program. When I try to watch even the simplest array, the watch window displays garbage (even after initialization), butthe programoutputs thecorrect result.

I could work around this with a lot of tedious print statements, but I really like the watches! Any advice would be appreciated. Thanks.

0 Kudos
3 Replies
jim_dempsey
Beginner
639 Views
Looks like you need to update your version of the compiler.
Works fine (most of the time) on V9.0.24
Jim Dempsey
0 Kudos
ferrad
New User
639 Views

Does this work for you in 9.028? I'm having the same problem (see recent thread).

Adrian

0 Kudos
Steven_L_Intel1
Employee
639 Views
I see the problem in 9.0.028. Thanks for submitting a report.
0 Kudos
Reply