Software Archive
Read-only legacy content
17061 Discussions

rank 3 array in namelist leads to severe error 19

jorgenjohansson
Beginner
1,012 Views
Hello,

I am trying to read in some input data through a namelist.
I have declared a rank 3 array:

real :: inclusion(20,5,5)=0.0

In the namelist I include the the array inclusion and in the input file
I have the following statement
...

inclusion(1:4,1,1)=3.5, 4, 4, 3
...

The program crashes and exit with severe error 19 in Compaq Visual
Fortran version 6.1A.

If I instead choose to have in the input file the following statement
it works fine.
...

inclusion(4,1,1)= 3
...

Why can I read in one value to the rank 3 array but not a sequence of 4
values? Might it be a bug/limitation in Visual Fortran?

If it is a bug is it already fixed in the lates version of Visual Fortran? If so I will of course upgrade.

I appreciate any help I get to solve this problem.

sincerely

jorgen johansson
johansson_jorgen@spamyahoo.com
(remove the word spam in infront of yahoo.)
0 Kudos
6 Replies
Steven_L_Intel1
Employee
1,012 Views
Yes, it's a bug. NAMELIST input wasn't accepting array slice notation. It does now, so I suggest you upgrade to 6.5A.

Steve
0 Kudos
jorgenjohansson
Beginner
1,012 Views
I am getting back to you on this Steve. My laboratory bought the new version i.e. 6.5 and I updated to 6.5A by downloading the patch. but I can still not use array slice notation on a rank 2 array. Rank 1 array slice notation works fine but not rank 2.

jorgen
0 Kudos
jorgenjohansson
Beginner
1,012 Views
The error message is number 17 not 19. sorry.
jorgen
0 Kudos
Steven_L_Intel1
Employee
1,012 Views
Please send us an example to vf-support@compaq.com and we'll take a look.

Steve
0 Kudos
jorgenjohansson
Beginner
1,012 Views
My Apologies. I had not rebooted the system after installation. (was not asked to so I though it was not necessary). After rebooting the computer this morning I realized the was acutally fixed. Thanks and I am sorry for the trouble I may may have caused.

jorgen
0 Kudos
Steven_L_Intel1
Employee
1,012 Views
Curious - normally CVF doesn't require a reboot. Something else must have been going on. Glad to hear you got it resolved.

Steve
0 Kudos
Reply