Hi all, this one has me pulliing out my hair (what's left), can anyone offer advice?
I'm printing out from one element of an array of stuctures
1) This does not work
write (6,300) radpos, (items(it).values(i,j), items(it).acc(i,j), i=1,ndim1)
Compiling with Intel(R) Visual Fortran Compiler XE 12.1.0.233 [IA-32]... Fatal: There has been an internal compiler error (C0000005).
2) but when I take a copy of the element, it does work
type(cItem):: item
item = items(it)
write (6,300) radpos, (item.values(i,j), item.acc(i,j), i=1,ndim1)
I'm getting the error in debug and release mode and I've turned off optimisation and run-time checking. I have also noticed when I debug, the line-pointer (yellow arrow) is on the line below the active line. (I have cleaned and rebuilt). All my code is in modules.
type cItem
real:: values(MAX_RAKE,MAX_RADIAL) = 0.
real:: mean = 0.
real:: coeff1
character(len=6):: name = ''
character(len=6):: typ = ''
character(len=4):: plane = ''
character(len=6):: pos = ''
character(len=6):: useage= ''
character(len=2):: conv = ''
character(len=30):: com = ''
character(len=50):: planeDes = ''
character(len=1):: conf(MAX_RAKE,MAX_RADIAL)= ''
character(len=1):: acc(MAX_RAKE,MAX_RADIAL) = '/' ! ''=OK '/'=not found 'R'=Reject
integer:: dim1 = 0
integer:: dim2 = 0
logical:: isFound = .false.
end type
type (cItem):: items(0:N_ITEM_MAX)